From 37e41f1a2571ad772970c5becbafa9b524da473b Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Date: Mon, 29 Jul 2024 11:59:30 +0200 Subject: [PATCH] chore: disable http logger when not using debug --- pkg/registry/http.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/registry/http.go b/pkg/registry/http.go index 2441ce1..831b3d7 100644 --- a/pkg/registry/http.go +++ b/pkg/registry/http.go @@ -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}