Skip to content

Commit

Permalink
fix: GetLevel error
Browse files Browse the repository at this point in the history
  • Loading branch information
leeqvip committed Feb 7, 2023
1 parent 05a2cbf commit 4cc26bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log/record/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func GetLevels() map[Level]string {
// GetLevel Parse the string level into a Level constant.
func GetLevel(levelKey string) Level {
for level, s := range levels {
if strings.ToUpper(s) == s {
if strings.ToUpper(levelKey) == s {
return level
}
}
Expand Down

0 comments on commit 4cc26bf

Please sign in to comment.