From ed01305e292d3591dc486dc5a38fa8506bbf00ff Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Fri, 13 May 2016 09:53:50 +0200 Subject: don't spam the log file with failed token validation entries --- lib/private/Authentication/Token/DefaultTokenProvider.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/private') diff --git a/lib/private/Authentication/Token/DefaultTokenProvider.php b/lib/private/Authentication/Token/DefaultTokenProvider.php index a6641277cf9..deca5b409e8 100644 --- a/lib/private/Authentication/Token/DefaultTokenProvider.php +++ b/lib/private/Authentication/Token/DefaultTokenProvider.php @@ -148,13 +148,11 @@ class DefaultTokenProvider implements IProvider { * @return DefaultToken user UID */ public function validateToken($token) { - $this->logger->debug('validating default token <' . $token . '>'); try { $dbToken = $this->mapper->getToken($this->hashToken($token)); - $this->logger->debug('valid token for ' . $dbToken->getUID()); + $this->logger->debug('valid default token for ' . $dbToken->getUID()); return $dbToken; } catch (DoesNotExistException $ex) { - $this->logger->warning('invalid token'); throw new InvalidTokenException(); } } -- cgit v1.2.3