mirror of
https://github.com/nextcloud/server.git
synced 2026-03-25 11:54:59 -04:00
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>
This commit is contained in:
parent
57ecf55e0f
commit
69f5f014b3
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue