Change "unknown log level" ErrorLevel message to WarningLevel with implications

This commit is contained in:
Juan Carlos Mejías Rodríguez 2019-08-09 14:53:20 -04:00
parent 12b89062c7
commit 1f78446a6f

View File

@ -91,8 +91,9 @@ func initLogger() {
logLevel, err := logrus.ParseLevel(logLevelName)
if err != nil {
logrus.WithFields(logrus.Fields{
"level": logLevelName,
}).Error("Unknown log level. Default \"info\" level will be used instead.")
"level": logLevelName,
"implications": `Default "info" level will be used instead`,
}).Warning("Unknown log level")
logrus.SetLevel(logrus.InfoLevel)
}
logrus.SetLevel(logLevel)