-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
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
Added warning logging for retries #24031
Added warning logging for retries #24031
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR modifies the logging behavior for request retries by logging them as warnings until a retry limit is reached or when retries run indefinitely, according to the provided retry count and max retry configurations.
- Updated runWithRetry to log warnings if the retry count is below the maximum.
- Updated requestWithRetry with a similar change to use warning logs under the same conditions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some minor comments.
Description
Logging request retries as warnings instead of errors till the retryCount >= maxRetryCount or the maxRetryCount == -1 (Runs indefinitely).