Browse Source

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

Fabien Potencier 15 years ago
parent
commit
9052418f6e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Symfony/Framework/WebBundle/Listener/ExceptionHandler.php

+ 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)
     {