Skip to content

Commit 4cc26bf

Browse files
committed
fix: GetLevel error
1 parent 05a2cbf commit 4cc26bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log/record/record.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func GetLevels() map[Level]string {
5555
// GetLevel Parse the string level into a Level constant.
5656
func GetLevel(levelKey string) Level {
5757
for level, s := range levels {
58-
if strings.ToUpper(s) == s {
58+
if strings.ToUpper(levelKey) == s {
5959
return level
6060
}
6161
}

0 commit comments

Comments
 (0)