diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-05-13 16:09:49 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-13 16:09:49 +0200 |
commit | 6938904b07cba1f6120f1ebc9b3eaae2164c53c0 (patch) | |
tree | a54c600234f51b851d6a3bb6cf0252666b93c39d /lib | |
parent | 9ac763a6407fa4b974fae4a2d60b9408660c3db6 (diff) | |
parent | ed01305e292d3591dc486dc5a38fa8506bbf00ff (diff) | |
download | nextcloud-server-6938904b07cba1f6120f1ebc9b3eaae2164c53c0.tar.gz nextcloud-server-6938904b07cba1f6120f1ebc9b3eaae2164c53c0.zip |
Merge pull request #24614 from owncloud/token-validation-log
don't spam the log file with failed token validation entries
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Authentication/Token/DefaultTokenProvider.php | 4 |
1 files changed, 1 insertions, 3 deletions
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(); } } |