[FrameworkBundle] added error logging with error_log() when logger is disabled
This commit is contained in:
parent
d5069fc594
commit
cbdde58ddd
@ -55,6 +55,8 @@ class ExceptionListener
|
|||||||
|
|
||||||
if (null !== $this->logger) {
|
if (null !== $this->logger) {
|
||||||
$this->logger->err(sprintf('%s: %s (uncaught exception)', get_class($exception), $exception->getMessage()));
|
$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');
|
$class = $this->container->getParameter('exception_manager.class');
|
||||||
|
Reference in New Issue
Block a user