We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d3e08d commit 1760e7bCopy full SHA for 1760e7b
pkg/util/http.go
@@ -219,7 +219,7 @@ func (l Log) Wrap(next http.Handler) http.Handler {
219
n, err := next(p)
220
headerWritten = true
221
httpErr.Add(err)
222
- if httpCode >= 500 && httpCode < 600 {
+ if httpCode >= 400 && httpCode < 600 {
223
bodyLeft = captureResponseBody(p, bodyLeft, &buf)
224
}
225
return n, err
@@ -267,7 +267,8 @@ func (l Log) Wrap(next http.Handler) http.Handler {
267
268
return
269
270
- if 100 <= statusCode && statusCode < 500 {
+
271
+ if 100 <= statusCode && statusCode < 400 {
272
if l.LogRequestAtInfoLevel {
273
level.Info(requestLogD).Log("msg", "http request processed")
274
} else {
0 commit comments