We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ref: main/client.go
Hey all. Can we Update the retryablehttp.Client.Logger field to be one of the following?
retryablehttp.Client.Logger
type RetryableHttpLoggerConstraint interface { retryablehttp.Logger | retryablehttp.LeveledLogger } func SetLogger[T LoggerConstraint](client *retryablehttp.Client, logger T) { client.Logger = logger }
retryablehttp.LeveledLogger
retryablehttp.Logger
Doing a type check and panic-ing at runtime is no bueno and is likely to cause incidents in production (like it did with us).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ref: main/client.go
Hey all. Can we Update the
retryablehttp.Client.Logger
field to be one of the following?retryablehttp.LeveledLogger
orretryablehttp.Logger
or something else)Doing a type check and panic-ing at runtime is no bueno and is likely to cause incidents in production (like it did with us).
The text was updated successfully, but these errors were encountered: