Skip to content

Commit 0831802

Browse files
fix: fix setting of info log level when trying to detect level from log lines (#12635)
1 parent 397aa56 commit 0831802

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/distributor/distributor.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ func extractLogLevelFromLogLine(log string) string {
919919
return logLevelDebug
920920
}
921921
if strings.Contains(log, `:"info"`) || strings.Contains(log, `:"INFO"`) {
922-
return logLevelDebug
922+
return logLevelInfo
923923
}
924924
}
925925

@@ -940,7 +940,7 @@ func extractLogLevelFromLogLine(log string) string {
940940
return logLevelDebug
941941
}
942942
if strings.Contains(log, "=info") || strings.Contains(log, "=INFO") {
943-
return logLevelDebug
943+
return logLevelInfo
944944
}
945945
}
946946

0 commit comments

Comments
 (0)