We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05a2cbf commit 4cc26bfCopy full SHA for 4cc26bf
log/record/record.go
@@ -55,7 +55,7 @@ func GetLevels() map[Level]string {
55
// GetLevel Parse the string level into a Level constant.
56
func GetLevel(levelKey string) Level {
57
for level, s := range levels {
58
- if strings.ToUpper(s) == s {
+ if strings.ToUpper(levelKey) == s {
59
return level
60
}
61
0 commit comments