Commit 0870e199 authored by catch's avatar catch

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
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment