From 40a093dec0b9af91e1a5aff121b4655269511de5 Mon Sep 17 00:00:00 2001 From: Vidar Langseid Date: Wed, 27 Apr 2022 14:15:25 +0200 Subject: [PATCH] fixup! fixup! fixup! IBX-1948 : Log exceptions from admin-ui --Using LoggerAwareTrait instead --- src/lib/EventListener/AdminExceptionListener.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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