Code review (round 1)

This commit is contained in:
binwiederhier 2023-02-08 22:57:10 -05:00
parent 7706bd9845
commit b37cf02a6e
12 changed files with 78 additions and 23 deletions

View file

@ -197,8 +197,12 @@ func (e *Event) globalLevelWithOverride() Level {
}
for field, override := range ov {
value, exists := e.fields[field]
if exists && value == override.value {
return override.level
if exists {
if value == override.value {
return override.level
} else if fmt.Sprintf("%v", value) == override.value {
return override.level
}
}
}
return l