Ver código fonte

[WebBundle] added a trace of uncaught exception with error_log() in prod environment

Fabien Potencier 15 anos atrás
pai
commit
9052418f6e

+ 2 - 0
src/Symfony/Framework/WebBundle/Listener/ExceptionHandler.php

@@ -73,6 +73,8 @@ class ExceptionHandler
     try
     {
       $response = $event->getSubject()->handleRaw($request, false);
+
+      error_log(sprintf('%s: %s', get_class($exception), $exception->getMessage()));
     }
     catch (\Exception $e)
     {