-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
Indicate when message is not processed by the monolog handler, to disable bubbling #1189
Comments
By default, the |
@ste93cry I'm using $bubble = false to prevent future processing after event is sent to Sentry, but sometimes my on-premise instance of Sentry may be unavailable, so I want to fallback to another error monitoring system |
Wouldn't changing the current behavior go against the purpose of the
Basically, you're saying that in case an error occurs while sending the event, you would like the message to be handled by other handlers, regardless of whether this is permitted or not according to |
Yep!
I'm considering message as "not handled" when error occurred while sending. Also, PHPdoc here says:
|
The second statement though is more general in the wording instead, therefore open to a possible different interpretation. I had a look at the built-in handlers of Monolog and they all avoid bubbling if |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Hello!
Monolog\Handler\HandlerInterface::handle allows returning false to indicate that message is not handled for some reason, so it'll be passed to next registered monolog handlers, even when
$bubble == true
.I think it would be great for sentry monolog handler to overwrite this method to return false when some error happened during processing
The text was updated successfully, but these errors were encountered: