Add some log so we know the initialisation went well

This commit is contained in:
Brendan Abolivier 2017-08-07 13:06:55 +01:00
parent d7c7e87e14
commit d027d9b9a2
No known key found for this signature in database
GPG key ID: 8EF1500759F70623

View file

@ -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))
}
}()