mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-16 05:16:08 +02:00
fix(http): Use configured logger for retryClient (#5040)
Co-authored-by: jliempt <>
This commit is contained in:
parent
ca56fcf962
commit
7e2604ad9e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user