mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 03:17:50 +00:00
disable retryablehttp logger because *wow* that's a lot of output
This commit is contained in:
parent
16161025f2
commit
6335b9c801
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue