Backport bootstrap release 1.21 (#4313)

This commit is contained in:
Brian Downs
2021-10-25 13:03:21 -07:00
committed by GitHub
parent 63bcc307fb
commit f0ea0a0946
17 changed files with 858 additions and 156 deletions

View File

@@ -79,7 +79,9 @@ func (c *Cluster) initClusterAndHTTPS(ctx context.Context) error {
// Create a HTTP server with the registered request handlers, using logrus for logging
server := http.Server{
Handler: handler}
Handler: handler,
}
if logrus.IsLevelEnabled(logrus.DebugLevel) {
server.ErrorLog = log.New(logrus.StandardLogger().Writer(), "Cluster-Http-Server ", log.LstdFlags)
} else {