Skip to content

Commit 738de6d

Browse files
authored
fix: Disable retry logging (#144)
1 parent b8ead7c commit 738de6d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

client.gen.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/client.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ type ClientOption func(*{{ $clientTypeName }}) error
3232

3333
// Creates a new {{ $clientTypeName }}, with reasonable defaults
3434
func NewClient(server string, opts ...ClientOption) (*{{ $clientTypeName }}, error) {
35-
opts = append([]ClientOption{WithHTTPClient(retryablehttp.NewClient().StandardClient())}, opts...)
35+
retryClient := retryablehttp.NewClient()
36+
retryClient.Logger = nil
37+
opts = append([]ClientOption{WithHTTPClient(retryClient.StandardClient())}, opts...)
3638
// create a client with sane default values
3739
client := {{ $clientTypeName }}{
3840
Server: server,

0 commit comments

Comments
 (0)