Skip to content

Commit

Permalink
only status >= 400 is error
Browse files Browse the repository at this point in the history
  • Loading branch information
barrettj12 committed Aug 15, 2023
1 parent 3e47aa7 commit 64f1a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internals/overlord/logstate/loki/loki.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func handleServerResponse(resp *http.Response) error {
RetryAfter: retryAfter,
}

case code < 200 || code >= 300:
case code >= 400:
// Request to Loki failed
b, err := io.ReadAll(io.LimitReader(resp.Body, 1024))
if err != nil {
Expand Down

0 comments on commit 64f1a6e

Please sign in to comment.