summaryrefslogtreecommitdiff
path: root/src/leap
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
commitfe46507c44fbfb9c8ed72799d5e8bfb0ac32a10c (patch)
treeaa57cb580c6c897c4efd05b2525351bd37ae52b4 /src/leap
parentf719b8546a214b6bd6ecbef715c5f34b42ad8d52 (diff)
[feat] reduce log level for encrypt/decrypt errors
* Related: #8022
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/keymanager/openpgp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/keymanager/openpgp.py b/src/leap/keymanager/openpgp.py
index 0d5a866..a843261 100644
--- a/src/leap/keymanager/openpgp.py
+++ b/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):