mirror of
https://github.com/amir20/dozzle.git
synced 2026-01-01 18:47:25 +01:00
chore: remove debug statement
This commit is contained in:
@@ -132,7 +132,6 @@ func guessLogLevel(logEvent *LogEvent) string {
|
||||
case string:
|
||||
levels := []string{"error", "warn", "info", "debug", "trace", "fatal"}
|
||||
stripped := ANSI_COLOR_REGEX.ReplaceAllString(value, "") // remove ansi color codes
|
||||
log.Debugf("colors stripped: %s", stripped)
|
||||
for _, level := range levels {
|
||||
if match, _ := regexp.MatchString("(?i)^"+level+"[^a-z]", stripped); match {
|
||||
return level
|
||||
|
||||
Reference in New Issue
Block a user