chore: disable http logger

when not using debug
This commit is contained in:
Carlos Sanchez 2024-07-29 11:59:30 +02:00
parent 68a5d49537
commit 37e41f1a25

View file

@ -54,6 +54,9 @@ func newHTTPRegistry(schemaPathTemplate string, cacheFolder string, strict bool,
// retriable http client
retryClient := retryablehttp.NewClient()
if !debug {
retryClient.Logger = nil
}
retryClient.RetryMax = 2
retryClient.HTTPClient = &http.Client{Transport: reghttp}