Skip to content

Commit e6f1599

Browse files
schmidtwkcajmagic
authored andcommitted
These can happen a lot & should be at a lower level then ERROR. Bumping down to DEBUG. (#441)
1 parent 77d97b1 commit e6f1599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xhttp/retry.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func RetryTransactor(o RetryOptions, next func(*http.Request) (*http.Response, e
126126
for r := 0; r < o.Retries && ((err != nil && o.ShouldRetry(err)) || o.ShouldRetryStatus(statusCode)); r++ {
127127
o.Counter.Add(1.0)
128128
o.Sleep(o.Interval)
129-
o.Logger.Log(level.Key(), level.ErrorValue(), logging.MessageKey(), "retrying HTTP transaction", "url", request.URL.String(), logging.ErrorKey(), err, "retry", r+1, "statusCode", statusCode)
129+
o.Logger.Log(level.Key(), level.DebugValue(), logging.MessageKey(), "retrying HTTP transaction", "url", request.URL.String(), logging.ErrorKey(), err, "retry", r+1, "statusCode", statusCode)
130130

131131
if err := Rewind(request); err != nil {
132132
return nil, err
@@ -140,7 +140,7 @@ func RetryTransactor(o RetryOptions, next func(*http.Request) (*http.Response, e
140140
}
141141

142142
if err != nil {
143-
o.Logger.Log(level.Key(), level.ErrorValue(), logging.MessageKey(), "All HTTP transaction retries failed", "url", request.URL.String(), logging.ErrorKey(), err, "retries", o.Retries)
143+
o.Logger.Log(level.Key(), level.DebugValue(), logging.MessageKey(), "All HTTP transaction retries failed", "url", request.URL.String(), logging.ErrorKey(), err, "retries", o.Retries)
144144
}
145145

146146
return response, err

0 commit comments

Comments
 (0)