Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Messenger] Use "warning" instead of "error" log level for RecoverableException #39378

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

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Dec 8, 2020

Q A
Branch? 5.x
Bug fix? no
New feature? yes
Deprecations? no
Tickets
License MIT
Doc PR

When one throw a RecoverableExceptionInterface, one knows somethings
wrong occurs, so if an error should be emmited, it's in place where the
exception is thrown.

And, by extension, if nothing really wrong occurs (like a random network
error), one may want to retry the message without any errors.

That's why in this PR, if an exception of type RecoverableExceptionInterface
is thrown, it uses warning insteand of error log level. So
everything stay under the radar.

@lyrixx lyrixx requested a review from sroze as a code owner December 8, 2020 10:05
@lyrixx lyrixx requested a review from jderusse December 8, 2020 10:05
@lyrixx lyrixx changed the title [Messenger] Use "warning" intead of "error" log level for RecoverableException [Messenger] Use "warning" instead of "error" log level for RecoverableException Dec 8, 2020
@lyrixx lyrixx force-pushed the messenger-log-on-retry branch from 1b6e420 to a885ba8 Compare December 8, 2020 10:59
@jderusse jderusse added this to the 5.x milestone Dec 8, 2020
@fabpot
Copy link
Member

fabpot commented Dec 10, 2020

Thank you @lyrixx.

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.

6 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.