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 (#12644)

Co-authored-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
  • Loading branch information
shantanualsi and sandeepsukhani authored Apr 17, 2024
1 parent 13d45bc commit d5dc24b
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 d5dc24b

Please sign in to comment.