We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a24df16 commit 31d17cbCopy full SHA for 31d17cb
internal/client/client.go
@@ -1,6 +1,9 @@
1
package client
2
3
import (
4
+ "io"
5
+ "log"
6
+
7
"github.com/cli/go-gh"
8
"github.com/cli/go-gh/pkg/api"
9
"github.com/hashicorp/go-retryablehttp"
@@ -10,6 +13,7 @@ import (
10
13
func NewClient(host string) (api.RESTClient, error) {
11
14
retryableHTTPClient := retryablehttp.NewClient()
12
15
retryableHTTPClient.RetryMax = 5
16
+ retryableHTTPClient.Logger = log.New(io.Discard, "", log.LstdFlags)
17
retryableRoundTripper := retryablehttp.RoundTripper{Client: retryableHTTPClient}
18
19
client, err := gh.RESTClient(&api.ClientOptions{Host: host, Transport: &retryableRoundTripper})
0 commit comments