From e6f15992a3408f3dd9b61eee98da877830b71111 Mon Sep 17 00:00:00 2001 From: Weston Schmidt Date: Fri, 15 Nov 2019 15:34:32 -0800 Subject: [PATCH] These can happen a lot & should be at a lower level then ERROR. Bumping down to DEBUG. (#441) --- xhttp/retry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xhttp/retry.go b/xhttp/retry.go index 730cb8f8..29ef7241 100644 --- a/xhttp/retry.go +++ b/xhttp/retry.go @@ -126,7 +126,7 @@ func RetryTransactor(o RetryOptions, next func(*http.Request) (*http.Response, e for r := 0; r < o.Retries && ((err != nil && o.ShouldRetry(err)) || o.ShouldRetryStatus(statusCode)); r++ { o.Counter.Add(1.0) o.Sleep(o.Interval) - o.Logger.Log(level.Key(), level.ErrorValue(), logging.MessageKey(), "retrying HTTP transaction", "url", request.URL.String(), logging.ErrorKey(), err, "retry", r+1, "statusCode", statusCode) + o.Logger.Log(level.Key(), level.DebugValue(), logging.MessageKey(), "retrying HTTP transaction", "url", request.URL.String(), logging.ErrorKey(), err, "retry", r+1, "statusCode", statusCode) if err := Rewind(request); err != nil { return nil, err @@ -140,7 +140,7 @@ func RetryTransactor(o RetryOptions, next func(*http.Request) (*http.Response, e } if err != nil { - o.Logger.Log(level.Key(), level.ErrorValue(), logging.MessageKey(), "All HTTP transaction retries failed", "url", request.URL.String(), logging.ErrorKey(), err, "retries", o.Retries) + o.Logger.Log(level.Key(), level.DebugValue(), logging.MessageKey(), "All HTTP transaction retries failed", "url", request.URL.String(), logging.ErrorKey(), err, "retries", o.Retries) } return response, err