Use fallback named logger (#30)

This commit is contained in:
Shashwathi 2018-08-01 02:49:37 +05:30 committed by Google Prow Robot
parent 9a6f5abda8
commit bba99e266c
1 changed files with 1 additions and 4 deletions

View File

@ -51,10 +51,7 @@ func NewLogger(configJSON string, levelOverride string) (*zap.SugaredLogger, zap
if err2 != nil {
panic(err2)
}
logger.Error("Failed to parse the logging config. Falling back to default logger.",
zap.Error(err), zap.String(logkey.JSONConfig, configJSON))
return logger.Sugar(), loggingCfg.Level
return logger.Named("fallback-logger").Sugar(), loggingCfg.Level
}
// NewLoggerFromConfig creates a logger using the provided Config