Skip to content
Snippets Groups Projects
Commit cb2f3617 authored by Fabien Potencier's avatar Fabien Potencier
Browse files

bug #1354 Adding a flag to disable the Monolog error handler (skalpa)

This PR was merged into the 2.0.x-dev branch.

Discussion
----------

Adding a flag to disable the Monolog error handler

The monolog error handler can now be disabled by setting the value of the new `monolog.use_error_handler` parameter to false (since it was added in  a53ce590 it was always enabled).

The error handler is disabled by default when the application `debug` parameter is set to true, to ensure it won't silence exceptions and/or errors.

Without the flag, an uncaught exception thrown during boot on `master` will just result in a white page, even when using `debug` and `error_reporting` (because the error handler calls `exit` after logging exceptions).

Commits
-------

8ecd0f01 Adding the monolog.use_error_handler parameter to configure whether the monolog ErrorHandler should be registered.
parents 2b303b4d 8ecd0f01
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment