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

This commit is contained in:
Brian Downs
2021-10-26 17:58:19 -07:00
committed by GitHub
parent 174b3881a2
commit c5a9154538
2 changed files with 3 additions and 2 deletions

View File

@@ -79,7 +79,8 @@ 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)