diff --git a/src/lib/EventListener/AdminExceptionListener.php b/src/lib/EventListener/AdminExceptionListener.php index 91b5884181..b74fc5ecfb 100644 --- a/src/lib/EventListener/AdminExceptionListener.php +++ b/src/lib/EventListener/AdminExceptionListener.php @@ -103,7 +103,9 @@ public function onKernelException(GetResponseForExceptionEvent $event) // map exception to UI notification $this->notificationHandler->error($this->getNotificationMessage($exception)); - $this->logger->critical($exception->getMessage()); + $this->logger->critical($exception->getMessage(), [ + 'exception' => $exception, + ]); if ($exception instanceof RuntimeError) { // If exception is coming from the template where encore already