Skip to content

Commit

Permalink
Turn off HTTP debug logging (#102)
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
hankjacobs authored Mar 19, 2024
1 parent 8b56f8c commit 3cf068d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3cf068d

Please sign in to comment.