Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid logging SystemExceptions twice
SystemExceptions are already logged when the System ServiceProvider listens to the Message Logged event, this code used to be for ApplicationExceptions to bypass the fact that they were explicitly ignored by October's core exception handler. ApplicationExceptions were added 27 Jan 2015 in octobercms/library@6a68036 ApplicationExceptions were explicitly ignored in the core exception handler on 16 Feb 2015 in octobercms/library@237d97d#diff-b6bf0348130fdd1311473a97536310cdR20 and were explicitly logged in the System exception handler on the same day in 7b52e07#diff-547f5794a63e9f138c33b20de8649b7eR20-R31 Not sure why that was originally the case, but we've made the decision that ApplicationExceptions shouldn't be logged by default as they should occur semi-regularly in a healthy application (mostly as an expression of complex logical validation that triggers them based on bad user input): #4569 (comment) Fixes #5253.
- Loading branch information