aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2022-04-04 16:23:05 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2022-04-04 16:23:05 +0200
commit69f5f014b3ccb6fe4e5d189a0352ec37aab4f8d2 (patch)
tree38dd77fc869e30d2ce3ddeb74672f8eb1976c67d
parent57ecf55e0f91f28b7b1665bb9765a1f58a285aca (diff)
downloadnextcloud-server-69f5f014b3ccb6fe4e5d189a0352ec37aab4f8d2.tar.gz
nextcloud-server-69f5f014b3ccb6fe4e5d189a0352ec37aab4f8d2.zip
Log why the login token can't be used for credentials
And always pass the exception object to the logger. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r--lib/private/Authentication/LoginCredentials/Store.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Authentication/LoginCredentials/Store.php b/lib/private/Authentication/LoginCredentials/Store.php
index 9055f9b56a2..0ab4c9a37cc 100644
--- a/lib/private/Authentication/LoginCredentials/Store.php
+++ b/lib/private/Authentication/LoginCredentials/Store.php
@@ -98,12 +98,12 @@ class Store implements IStore {
return new Credentials($uid, $user, $password);
} catch (SessionNotAvailableException $ex) {
- $this->logger->debug('could not get login credentials because session is unavailable', ['app' => 'core']);
+ $this->logger->debug('could not get login credentials because session is unavailable', ['app' => 'core', 'exception' => $ex]);
} catch (InvalidTokenException $ex) {
- $this->logger->debug('could not get login credentials because the token is invalid', ['app' => 'core']);
+ $this->logger->debug('could not get login credentials because the token is invalid: ' . $ex->getMessage(), ['app' => 'core', 'exception' => $ex]);
$trySession = true;
} catch (PasswordlessTokenException $ex) {
- $this->logger->debug('could not get login credentials because the token has no password', ['app' => 'core']);
+ $this->logger->debug('could not get login credentials because the token has no password', ['app' => 'core', 'exception' => $ex]);
$trySession = true;
}