-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
New feature: added mage_run_installed_exception
event when uncatched exception is thrown
#3613
Conversation
I think having 1 event as shown here is enough to even implement this new Error library or any library for that matter. I don't really see the need to have more than that event. Also it makes sure that the exception caught can only be from cgi context, as the |
not really because there's still the need to override the default error handler and that needs to be in the initEnvironment, so at least 2 events are needed. I'll check if the event added in this pr could be used also in the context of Ignition and get back here. |
@empiricompany could you test your ignition module listening to mage_run_exception and mage_installed_exception (i've to say i don't love the name, although technically correct) instead of the ones added in #3957? |
My sentry implementation uses The new event |
we'll test the ignition module with a mix of your other PR and this one and see if it works, probably the mix of the two will be the best implementation ;-) |
i'd try to decide a name for this event and merge it asap so that we can test the Ignition thing with this new even and see if that's enough |
Co-authored-by: Fabrizio Balliano <[email protected]>
Co-authored-by: Fabrizio Balliano <[email protected]>
since we kinda already had consensus, if nothing comes up I'll merge this tomorrow |
mage_run_installed_exception
event when uncatched exception is thrown
Description (*)
This will add a new event called
mage_installed_exception
.It will be thrown when OpenMage is installed and an uncatched exception is handled in the
Mage::run
method.Using this new event it is possible to attach a exception facility, such as (Sentry)[https://sentry.io/].
Related Pull Requests
None
Fixed Issues (if relevant)
None, it got converted to a discussion: #3510
Manual testing scenarios (*)
Mage::run
Questions or comments
Contribution checklist (*)