diff --git a/pkg/http/client.go b/pkg/http/client.go index 00a4dd4..f8f81f9 100644 --- a/pkg/http/client.go +++ b/pkg/http/client.go @@ -185,7 +185,7 @@ func (r *HTTPClient) Do(req *http.Request) (*http.Response, error) { if incr > 0 { attempt += incr if attempt > r.maxRetries { - r.log.Warnf("Request to %s failed after %d attempts", req.URL.String(), r.maxRetries) + err = fmt.Errorf("max retries exceeded: %w", err) break } time.Sleep(r.backoff(attempt))