Skip to content

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