Add a log message that records the debug listening address and port. (#1677)

This commit is contained in:
Simon Guindon 2019-04-05 03:24:04 -04:00 committed by GitHub
parent 887b20c31b
commit b1804f398f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,7 @@ func initDebug(logger *zap.Logger, r *monkit.Registry) (err error) {
return err
}
go func() {
logger.Debug(fmt.Sprintf("debug server listening on %s", ln.Addr().String()))
err := (&http.Server{Handler: &mux}).Serve(ln)
if err != nil {
logger.Error("debug server died", zap.Error(err))