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

Move request cancellations to a separate log #2503

Merged
merged 1 commit into from
May 15, 2024

Conversation

MihaZupan
Copy link
Member

Fixes #2195

This moves RequestCanceled, RequestBodyCanceled and UpgradeRequestCanceled to a debug-level log.
The only thing I'm not sure about is whether ForwardingRequestCancelled is the right name for it in case we decide to switch more errors to it in the future.

Most of the change is switching error tests to use a shared helper that now also asserts that the error was logged.

@MihaZupan MihaZupan added this to the YARP 2.2.0-preview1 milestone May 15, 2024
@MihaZupan MihaZupan self-assigned this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Control the handling of TaskCanceledException and other exceptions
2 participants