Merge pull request #24614 from owncloud/token-validation-log

don't spam the log file with failed token validation entries
This commit is contained in:
Vincent Petry 2016-05-13 16:09:49 +02:00
commit 6938904b07
1 changed files with 1 additions and 3 deletions

View File

@ -148,13 +148,11 @@ class DefaultTokenProvider implements IProvider {
* @return DefaultToken user UID * @return DefaultToken user UID
*/ */
public function validateToken($token) { public function validateToken($token) {
$this->logger->debug('validating default token <' . $token . '>');
try { try {
$dbToken = $this->mapper->getToken($this->hashToken($token)); $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; return $dbToken;
} catch (DoesNotExistException $ex) { } catch (DoesNotExistException $ex) {
$this->logger->warning('invalid token');
throw new InvalidTokenException(); throw new InvalidTokenException();
} }
} }