From d027d9b9a26e9b2a97d19208a3101a5d51e7a539 Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Mon, 7 Aug 2017 13:06:55 +0100 Subject: [PATCH] Add some log so we know the initialisation went well --- .../matrix-org/dendrite/cmd/dendrite-monolith-server/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/cmd/dendrite-monolith-server/main.go b/src/github.com/matrix-org/dendrite/cmd/dendrite-monolith-server/main.go index e05614ccc..f0046d7b1 100644 --- a/src/github.com/matrix-org/dendrite/cmd/dendrite-monolith-server/main.go +++ b/src/github.com/matrix-org/dendrite/cmd/dendrite-monolith-server/main.go @@ -88,11 +88,13 @@ func main() { // Expose the matrix APIs directly rather than putting them under a /api path. go func() { + log.Info("Listening on ", *httpBindAddr) log.Fatal(http.ListenAndServe(*httpBindAddr, m.api)) }() // Handle HTTPS if certificate and key are provided go func() { if *certFile != "" && *keyFile != "" { + log.Info("Listening on ", *httpsBindAddr) log.Fatal(http.ListenAndServeTLS(*httpsBindAddr, *certFile, *keyFile, m.api)) } }()