Skip to content

Commit

Permalink
fix: fix setting of info log level when trying to detect level from l…
Browse files Browse the repository at this point in the history
…og lines (#12635)
  • Loading branch information
sandeepsukhani committed Apr 16, 2024
1 parent 397aa56 commit 0831802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/distributor/distributor.go
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ func extractLogLevelFromLogLine(log string) string {
return logLevelDebug
}
if strings.Contains(log, `:"info"`) || strings.Contains(log, `:"INFO"`) {
return logLevelDebug
return logLevelInfo
}
}

Expand All @@ -940,7 +940,7 @@ func extractLogLevelFromLogLine(log string) string {
return logLevelDebug
}
if strings.Contains(log, "=info") || strings.Contains(log, "=INFO") {
return logLevelDebug
return logLevelInfo
}
}

Expand Down

0 comments on commit 0831802

Please sign in to comment.