1
0
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:
Amir Raminfar
2023-03-28 16:04:56 -07:00
parent 9ecc21dcb2
commit 0521f343e3

View File

@@ -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
}