修改参数比较

This commit is contained in:
bjdgyc 2023-06-08 17:09:19 +08:00
parent 14efb14a9a
commit d36e2fe85a
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ func logLevel2Int(l string) int {
}
lvl := LogLevelInfo
for k, v := range levels {
if strings.EqualFold(strings.ToLower(l), strings.ToLower(v)) {
if strings.ToLower(l) == strings.ToLower(v) {
lvl = k
}
}