1
0
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:
Jordi van Liempt 2024-09-11 11:39:30 +02:00 committed by GitHub
parent ca56fcf962
commit 7e2604ad9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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