From cbdde58ddd9101cdbe0b49624709c9dbcfa15784 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 18 Aug 2010 13:42:01 +0200 Subject: [PATCH] [FrameworkBundle] added error logging with error_log() when logger is disabled --- src/Symfony/Bundle/FrameworkBundle/Debug/ExceptionListener.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Bundle/FrameworkBundle/Debug/ExceptionListener.php b/src/Symfony/Bundle/FrameworkBundle/Debug/ExceptionListener.php index 6ae0f6dd2b..4f34067410 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Debug/ExceptionListener.php +++ b/src/Symfony/Bundle/FrameworkBundle/Debug/ExceptionListener.php @@ -55,6 +55,8 @@ class ExceptionListener if (null !== $this->logger) { $this->logger->err(sprintf('%s: %s (uncaught exception)', get_class($exception), $exception->getMessage())); + } else { + error_log(sprintf('Uncaught PHP Exception %s: "%s" at %s line %s', get_class($exception), $exception->getMessage(), $exception->getFile(), $exception->getLine())); } $class = $this->container->getParameter('exception_manager.class');