Skip to content

Commit

Permalink
CBG-4069 Restore default nil for loggers (#6990)
Browse files Browse the repository at this point in the history
Restoring the previously to support existing nil check handling throughout.
  • Loading branch information
adamcfraser authored Jul 22, 2024
1 parent b540ec8 commit 1986176
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions base/logging_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ func InitLogging(ctx context.Context, logFilePath string,
ConsolefCtx(ctx, LevelError, KeyNone, ErrUnsetLogFilePath.Error())

// nil out other loggers
errorLogger = &FileLogger{}
warnLogger = &FileLogger{}
infoLogger = &FileLogger{}
debugLogger = &FileLogger{}
traceLogger = &FileLogger{}
statsLogger = &FileLogger{}
errorLogger = nil
warnLogger = nil
infoLogger = nil
debugLogger = nil
traceLogger = nil
statsLogger = nil
auditLogger = &AuditLogger{}

return nil
Expand Down

0 comments on commit 1986176

Please sign in to comment.