reset buffer after use (#4279) (#4329)

This commit is contained in:
Brian Downs
2021-10-26 17:58:25 -07:00
committed by GitHub
parent c9f6fa0be0
commit 9a4ca5978b
2 changed files with 4 additions and 2 deletions

View File

@@ -80,7 +80,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 {