diff --git a/cmd/sharded-test-server/frontproxy.go b/cmd/sharded-test-server/frontproxy.go index b239d555d24..8dd572caa84 100644 --- a/cmd/sharded-test-server/frontproxy.go +++ b/cmd/sharded-test-server/frontproxy.go @@ -157,12 +157,12 @@ func startFrontProxy( return err } - // defer func() { - // err = logFile.Close() - // if err != nil { - // logger.Error(err, "failed to close the log file") - // } - // }() + defer func() { + err = logFile.Close() + if err != nil { + logger.Error(err, "failed to close the log file") + } + }() writer := helpers.NewHeadWriter(logFile, out) cmd.Stdout = writer