mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 14:09:21 +00:00
chore: disable http logger
when not using debug
This commit is contained in:
parent
68a5d49537
commit
37e41f1a25
1 changed files with 3 additions and 0 deletions
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue