diff --git a/core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php index 93bf4961217afb97f09cf023215fa1893b209965..6b4bd1f14e66469f0f06a97fe382d9b5c872de2f 100644 --- a/core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php @@ -42,6 +42,7 @@ public function on403(ExceptionEvent $event) { // why access was denied. $exception = $event->getThrowable(); $error = Error::decodeException($exception); + unset($error['@backtrace_string']); $error['@uri'] = $event->getRequest()->getRequestUri(); $this->logger->get('access denied')->warning('Path: @uri. %type: @message in %function (line %line of %file).', $error); }