Skip to content

Commit

Permalink
fix(http): Use configured logger for retryClient (#5040)
Browse files Browse the repository at this point in the history
Co-authored-by: jliempt <>
  • Loading branch information
jliempt authored Sep 11, 2024
1 parent ca56fcf commit 7e2604a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,7 @@ func (c *Client) initializeHttpClient() *http.Client {

if c.maxRetries > 0 {
retryClient := retryablehttp.NewClient()
localLogger := log.Entry()
localLogger.Level = logrus.DebugLevel
retryClient.Logger = localLogger
retryClient.Logger = c.logger
retryClient.HTTPClient.Timeout = c.maxRequestDuration
retryClient.HTTPClient.Jar = c.cookieJar
retryClient.RetryMax = c.maxRetries
Expand Down

0 comments on commit 7e2604a

Please sign in to comment.