Skip to content
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

Merged
merged 3 commits into from
Mar 11, 2025

Conversation

dhr-verma
Copy link
Contributor

Description

Logging request retries as warnings instead of errors till the retryCount >= maxRetryCount or the maxRetryCount == -1 (Runs indefinitely).

@Copilot Copilot bot review requested due to automatic review settings March 11, 2025 20:11
@github-actions github-actions bot added area: server Server related issues (routerlicious) base: main PRs targeted against main branch labels Mar 11, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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.

Copy link
Contributor

@jfmendez11 jfmendez11 left a 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.

@dhr-verma dhr-verma enabled auto-merge (squash) March 11, 2025 21:21
@dhr-verma dhr-verma merged commit 6efcd95 into microsoft:main Mar 11, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: server Server related issues (routerlicious) base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants