summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/KeyManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/lib/KeyManager.php')
-rw-r--r--apps/encryption/lib/KeyManager.php10
1 files changed, 5 insertions, 5 deletions
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;
}