mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-24 14:31:44 +01:00
Also checks for level between []
This commit is contained in:
@@ -137,6 +137,10 @@ func guessLogLevel(logEvent *LogEvent) string {
|
||||
return level
|
||||
}
|
||||
|
||||
if strings.Contains(value, "["+strings.ToUpper(level)+"]") {
|
||||
return level
|
||||
}
|
||||
|
||||
if strings.Contains(value, " "+strings.ToUpper(level)+" ") {
|
||||
return level
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user