Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment