Skip to content

Commit 52c6ea0

Browse files
authored
fix(cli): silence debug output from retryablehttp package (#5461)
1 parent 0b86105 commit 52c6ea0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/replicatedapp/embeddedcluster.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func DownloadKOTSBinary(license *kotsv1beta1.License, versionLabel string) (stri
6262
req.SetBasicAuth(license.Spec.LicenseID, license.Spec.LicenseID)
6363

6464
client := retryablehttp.NewClient()
65+
client.Logger = nil
6566
client.HTTPClient.CheckRedirect = func(req *http.Request, via []*http.Request) error {
6667
req.Header.Del("Authorization")
6768
return nil

pkg/util/http.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ var DefaultHTTPClient *retryablehttp.Client
1313

1414
func init() {
1515
DefaultHTTPClient = retryablehttp.NewClient()
16+
DefaultHTTPClient.Logger = nil
1617
DefaultHTTPClient.ErrorHandler = errorHandler
1718
}
1819

0 commit comments

Comments
 (0)