Skip to content

Commit

Permalink
fixup! fixup! fixup! IBX-1948 : Log exceptions from admin-ui --Using …
Browse files Browse the repository at this point in the history
…LoggerAwareTrait instead
  • Loading branch information
vidarl committed Apr 27, 2022
1 parent 372d9ef commit 40a093d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/EventListener/AdminExceptionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40a093d

Please # to comment.