From 9052418f6ed99a13774896dab3180ef6ef322236 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sun, 25 Apr 2010 13:15:26 +0200 Subject: [PATCH] [WebBundle] added a trace of uncaught exception with error_log() in prod environment --- src/Symfony/Framework/WebBundle/Listener/ExceptionHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Framework/WebBundle/Listener/ExceptionHandler.php b/src/Symfony/Framework/WebBundle/Listener/ExceptionHandler.php index 9d71158da8..2603e6fd87 100644 --- a/src/Symfony/Framework/WebBundle/Listener/ExceptionHandler.php +++ b/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) {