diff --git a/internal/router/router.go b/internal/router/router.go index aa588906f..92f90c483 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -79,13 +79,15 @@ func (r *router) Start() { // serve the http handler on the selected letsencrypt port, for receiving letsencrypt requests and solving their devious riddles go func() { listen := fmt.Sprintf("%s:%d", bindAddress, lePort) + logrus.Infof("letsencrypt listening on %s", listen) if err := http.ListenAndServe(listen, r.certManager.HTTPHandler(http.HandlerFunc(httpsRedirect))); err != nil && err != http.ErrServerClosed { - logrus.Fatalf("listen: %s", err) + logrus.Fatalf("letsencrypt: listen: %s", err) } }() // and serve the actual TLS handler go func() { + logrus.Infof("listening on %s", r.srv.Addr) if err := r.srv.ListenAndServeTLS("", ""); err != nil && err != http.ErrServerClosed { logrus.Fatalf("listen: %s", err) } @@ -93,6 +95,7 @@ func (r *router) Start() { } else { // no tls required go func() { + logrus.Infof("listening on %s", r.srv.Addr) if err := r.srv.ListenAndServe(); err != nil && err != http.ErrServerClosed { logrus.Fatalf("listen: %s", err) }