comment out
All checks were successful
Tests / Run on Ubuntu (push) Successful in 1m41s
Lint / Run on Ubuntu (push) Successful in 2m51s

This commit is contained in:
Chris Richardson
2025-07-02 21:59:43 -04:00
parent 4fdde815ca
commit 85fe3fd0a6

View File

@@ -19,7 +19,11 @@ func CreateFileLogger(fileName string, logLevel zapcore.LevelEnabler) logr.Logge
if err != nil {
log.Fatal(err)
}
defer file.Close()
defer func() {
if cerr := file.Close(); cerr != nil && err == nil {
err = cerr
}
}()
config := zap.NewProductionEncoderConfig()
config.EncodeTime = zapcore.ISO8601TimeEncoder