mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Change "unknown log level" ErrorLevel message to WarningLevel with implications
This commit is contained in:
parent
12b89062c7
commit
1f78446a6f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user