disable retryablehttp logger because *wow* that's a lot of output

This commit is contained in:
Matthew Jaffee 2022-01-07 16:34:11 -06:00
parent 16161025f2
commit 6335b9c801
2 changed files with 6 additions and 0 deletions

View file

@ -19,6 +19,7 @@ import (
pilosa "github.com/molecula/featurebase/v2"
fb_http "github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/topology"
"github.com/pkg/errors"
@ -203,6 +204,8 @@ func (cmd *RestoreCommand) newClient() *retryablehttp.Client {
client.RetryWaitMin = min
client.RetryMax = int(attempts)
client.CheckRetry = retryWith400
client.Logger = logger.NopLogger
return client
}

View file

@ -82,7 +82,9 @@ func WithClientRetryPeriod(period time.Duration) InternalClientOption {
rc.RetryWaitMin = min
rc.RetryMax = int(attempts)
rc.CheckRetry = retryWith400Policy
rc.Logger = logger.NopLogger
c.retryableClient = rc
}
}
@ -123,6 +125,7 @@ func NewInternalClientFromURI(defaultURI *pnet.URI, remoteClient *http.Client, o
rc := retryablehttp.NewClient()
rc.HTTPClient = ic.httpClient
rc.CheckRetry = noRetryPolicy
rc.Logger = logger.NopLogger
ic.retryableClient = rc
}
return ic