diff --git a/core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php index 3d42176..eba6e7c 100644 --- a/core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php @@ -45,9 +45,7 @@ public function __construct(LoggerChannelFactoryInterface $logger) { */ public function on403(GetResponseForExceptionEvent $event) { $request = $event->getRequest(); - // @todo Remove dependency on the internal _system_path attribute: - // https://www.drupal.org/node/2293523. - $this->logger->get('access denied')->warning(String::checkPlain($request->attributes->get('_system_path'))); + $this->logger->get('access denied')->warning(String::checkPlain($request->getRequestUri())); } /** @@ -58,9 +56,7 @@ public function on403(GetResponseForExceptionEvent $event) { */ public function on404(GetResponseForExceptionEvent $event) { $request = $event->getRequest(); - // @todo Remove dependency on the internal _system_path attribute: - // https://www.drupal.org/node/2293523. - $this->logger->get('page not found')->warning(String::checkPlain($request->attributes->get('_system_path'))); + $this->logger->get('page not found')->warning(String::checkPlain($request->getRequestUri())); } /**