summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorKlaas Naaijkens <klaas@agilemedialab.in>2011-03-11 20:37:47 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2011-03-12 13:24:57 +0100
commit4b44ea84455acab6195fc3d17ae82212d4d56b04 (patch)
treef0b65f112cc3ba1491ccfa6d653c650b2e7b5870 /Http
parent1c411b73070b304a888b3893f21abe8cdb1716b8 (diff)
downloadsymfony-security-4b44ea84455acab6195fc3d17ae82212d4d56b04.zip
symfony-security-4b44ea84455acab6195fc3d17ae82212d4d56b04.tar.gz
symfony-security-4b44ea84455acab6195fc3d17ae82212d4d56b04.tar.bz2
use username instead of token object in logging
Diffstat (limited to 'Http')
-rw-r--r--Http/Firewall/AbstractPreAuthenticatedListener.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Firewall/AbstractPreAuthenticatedListener.php b/Http/Firewall/AbstractPreAuthenticatedListener.php
index 72808f5..2b883e3 100644
--- a/Http/Firewall/AbstractPreAuthenticatedListener.php
+++ b/Http/Firewall/AbstractPreAuthenticatedListener.php
@@ -55,7 +55,7 @@ abstract class AbstractPreAuthenticatedListener implements ListenerInterface
$request = $event->get('request');
if (null !== $this->logger) {
- $this->logger->debug(sprintf('Checking secure context token: %s', $this->securityContext->getToken()));
+ $this->logger->debug(sprintf('Checking secure context token: %s', $this->securityContext->getToken()->getUserName()));
}
list($user, $credentials) = $this->getPreAuthenticatedData($request);
@@ -74,7 +74,7 @@ abstract class AbstractPreAuthenticatedListener implements ListenerInterface
$token = $this->authenticationManager->authenticate(new PreAuthenticatedToken($user, $credentials, $this->providerKey));
if (null !== $this->logger) {
- $this->logger->debug(sprintf('Authentication success: %s', $token));
+ $this->logger->debug(sprintf('Authentication success: %s', $token->getUserName()));
}
$this->securityContext->setToken($token);