1
0
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:
Amir Raminfar
2023-05-25 11:35:48 -07:00
parent ad46d53ef2
commit ce63996954

View File

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