diff --git a/log/log.go b/log/log.go index a587c7d0..a9b23b07 100644 --- a/log/log.go +++ b/log/log.go @@ -13,6 +13,7 @@ import ( "log" "os" "runtime" + "strings" ) const ( @@ -232,6 +233,7 @@ func (l *Logger) Infof(format string, v ...interface{}) { } func StringToLogLevel(level string) LogLevel { + level = strings.ToLower(level) switch level { case "fatal": return LOG_LEVEL_FATAL