From 3cf068d1654982a3b9538ed003476e25defd7575 Mon Sep 17 00:00:00 2001 From: Hank Jacobs Date: Tue, 19 Mar 2024 10:24:13 -0700 Subject: [PATCH] Turn off HTTP debug logging (#102) [go-retryablehttp logs DEBUG to stdout by default](https://github.com/hashicorp/go-retryablehttp/blob/4165cf8897205a879a06b20d1ed0a2a76fbb6a17/client.go#L56). This PR disables that functionality. It may be worth wiring to `--debug` at some point. --- client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index b9380bc..d57fcdb 100644 --- a/client/client.go +++ b/client/client.go @@ -66,7 +66,7 @@ func New(ctx context.Context, apiKey, apiEndpoint, version string, opts ...Clien } retryClient := retryablehttp.NewClient() - + retryClient.Logger = nil retryClient.RetryMax = maxRetries retryClient.RetryWaitMin = minRetryWait retryClient.RetryWaitMax = maxRetryWait