summaryrefslogtreecommitdiff
path: root/keymanager/src
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2016-04-08 18:22:14 +0200
committerRuben Pollan <meskio@sindominio.net>2016-04-11 18:19:16 +0200
commit1e3d245f081d0948f0f6c6ae5368e3ab81eddd23 (patch)
treeaddf0749cd5acdc0e4c89fb311bfcee5623ed541 /keymanager/src
parentce59f4869a6477c36322479c2c35168087a57068 (diff)
[feat] reduce log level for encrypt/decrypt errors
* Related: #8022
Diffstat (limited to 'keymanager/src')
-rw-r--r--keymanager/src/leap/keymanager/openpgp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/keymanager/src/leap/keymanager/openpgp.py b/keymanager/src/leap/keymanager/openpgp.py
index 0d5a8667..a8432611 100644
--- a/keymanager/src/leap/keymanager/openpgp.py
+++ b/keymanager/src/leap/keymanager/openpgp.py
@@ -680,7 +680,7 @@ class OpenPGPScheme(EncryptionScheme):
self._assert_gpg_result_ok(result)
defer.returnValue(result.data)
except errors.GPGError as e:
- logger.error('Failed to decrypt: %s.' % str(e))
+ logger.warning('Failed to encrypt: %s.' % str(e))
raise errors.EncryptError()
@defer.inlineCallbacks
@@ -726,7 +726,7 @@ class OpenPGPScheme(EncryptionScheme):
defer.returnValue((result.data, sign_valid))
except errors.GPGError as e:
- logger.error('Failed to decrypt: %s.' % str(e))
+ logger.warning('Failed to decrypt: %s.' % str(e))
raise errors.DecryptError(str(e))
def is_encrypted(self, data):