Commit 0870e199 authored by catch's avatar catch
Browse files

Issue #3167390 by mbovan, Berdir: ExceptionLoggingSubscriber should not log...

Issue #3167390 by mbovan, Berdir: ExceptionLoggingSubscriber should not log backtrace string on access denied exceptions
parent 3e0f0155
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
  }