summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorJordi Boggiano <j.boggiano@seld.be>2012-03-23 11:42:13 +0100
committerJordi Boggiano <j.boggiano@seld.be>2012-03-23 11:42:13 +0100
commitf9a59e2f4d0cb925cb09bd21b1573c38c74f8b66 (patch)
tree50dab7946df2dd02a74c02a2e0c6dcaa4b702e4e /Http
parenta3bbd47233a371d6b5d85d27141772b60c36f40a (diff)
downloadsymfony-security-f9a59e2f4d0cb925cb09bd21b1573c38c74f8b66.zip
symfony-security-f9a59e2f4d0cb925cb09bd21b1573c38c74f8b66.tar.gz
symfony-security-f9a59e2f4d0cb925cb09bd21b1573c38c74f8b66.tar.bz2
[Security] Log file/line that triggered the AccessDeniedException
Diffstat (limited to 'Http')
-rw-r--r--Http/Firewall/ExceptionListener.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php
index 0996ab2..2f4dd79 100644
--- a/Http/Firewall/ExceptionListener.php
+++ b/Http/Firewall/ExceptionListener.php
@@ -98,7 +98,7 @@ class ExceptionListener
$token = $this->context->getToken();
if (!$this->authenticationTrustResolver->isFullFledged($token)) {
if (null !== $this->logger) {
- $this->logger->debug('Access denied (user is not fully authenticated); redirecting to authentication entry point');
+ $this->logger->debug('Access is denied (user is not fully authenticated) by '.$exception->getFile().' at line '.$exception->getLine().'; redirecting to authentication entry point');
}
try {
@@ -110,7 +110,7 @@ class ExceptionListener
}
} else {
if (null !== $this->logger) {
- $this->logger->debug('Access is denied (and user is neither anonymous, nor remember-me)');
+ $this->logger->debug('Access is denied (and user is neither anonymous, nor remember-me) by '.$exception->getFile().' at line '.$exception->getLine());
}
try {