Chore: use strict log level

This commit is contained in:
xjasonlyu
2021-02-06 11:46:35 +08:00
parent aa703ac90d
commit 93c739d2d9

View File

@@ -56,11 +56,11 @@ func (level Level) String() string {
func ParseLevel(lvl string) (Level, error) {
switch strings.ToLower(lvl) {
case "silent", "none":
case "silent":
return SilentLevel, nil
case "error":
return ErrorLevel, nil
case "warn", "warning":
case "warn":
return WarnLevel, nil
case "info":
return InfoLevel, nil