Add a log message that records the debug listening address and port. (#1677)
This commit is contained in:
parent
887b20c31b
commit
b1804f398f
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user