-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
Fatal errors are not handled anymore since release 0.19.0 #321
Comments
(Issue posted using the wrong account, no possibility to fix this.) |
So a couple things:
|
Just to update this, we need more information to reproduce. There's a few important things here:
|
One last update. The only thing I can think of here is Monolog is doing something to try and find an existing handler, and when it's present it's not registering its own. Our breadcrumb logger does the bare minimum: $this->existingHandler = set_error_handler(array($this, 'handleError'), E_ALL); if ($this->existingHandler !== null) {
return call_user_func($this->existingHandler, $code, $message, $file, $line, $context);
} So for starters I would suggest switching to |
I changed the title since this appears to be an issue with the monolog raven handler / monolog. |
Actually, I don't think this is only happening when using Monolog. Also Symfony's default error handler decides not to handle fatal errors when another handler is active, see the following code in
|
I think we're going to have to at very least not configure handlers when no DSN is set. This is slightly awkward behavior, as our goal is always to traverse the same paths of code in development (when possible) as production. This also means that if you didn't set the DSN when e.g. calling install(), and you set it later, you'd have to re-call install. Maybe in Symfony's case it'd make sense for us to have our ErrorHandler inherit from theres? |
I have the same problem but with |
With sentry-symfony, you can avoid registering of the handler by not setting the DSN. If this is issue is still applicable, please comment further. Closing for now. |
Since the
Raven_Breadcrumbs_ErrorHandler
is being registered as error handler (e988712), fatal errors are not handled anymore. When a fatal error occurs, I get a blank screen instead and nothing is sent to Sentry. When I disable the call of$this->registerDefaultBreadcrumbHandlers()
in the constructor ofRaven_Client
, everything works fine again (fatal errors are then handled bySymfony\Component\Debug\ErrorHandler::handleFatalError()
). However, using Symfony and Monolog there is no possibility to set the optioninstall_default_breadcrumb_handlers
tofalse
in the config.My Monolog config:
I'm using Symfony 3.1.2 with Monolog 1.20.0 and monolog-bundle 2.11.1.
The text was updated successfully, but these errors were encountered: