From 2a38605545e26ce68a37e5ebb877fd9c9875a37d Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 17 Jan 2018 15:21:56 +0100 Subject: Properly log the full exception instead of only the message Signed-off-by: Morris Jobke --- apps/encryption/lib/KeyManager.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/encryption') diff --git a/apps/encryption/lib/KeyManager.php b/apps/encryption/lib/KeyManager.php index d25a25cdcb8..e52da123fe0 100644 --- a/apps/encryption/lib/KeyManager.php +++ b/apps/encryption/lib/KeyManager.php @@ -372,11 +372,11 @@ class KeyManager { } catch (DecryptionFailedException $e) { return false; } catch (\Exception $e) { - $this->log->warning( - 'Could not decrypt the private key from user "' . $uid . '"" during login. ' . - 'Assume password change on the user back-end. Error message: ' - . $e->getMessage() - ); + $this->log->logException($e, [ + 'message' => 'Could not decrypt the private key from user "' . $uid . '"" during login. Assume password change on the user back-end.', + 'level' => \OCP\Util::WARN, + 'app' => 'encryption', + ]); return false; } -- cgit v1.2.3