diff options
author | Ruben Pollan <meskio@sindominio.net> | 2016-04-08 18:22:14 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2016-04-11 18:19:16 +0200 |
commit | fe46507c44fbfb9c8ed72799d5e8bfb0ac32a10c (patch) | |
tree | aa57cb580c6c897c4efd05b2525351bd37ae52b4 /src/leap/keymanager/openpgp.py | |
parent | f719b8546a214b6bd6ecbef715c5f34b42ad8d52 (diff) |
[feat] reduce log level for encrypt/decrypt errors
* Related: #8022
Diffstat (limited to 'src/leap/keymanager/openpgp.py')
-rw-r--r-- | src/leap/keymanager/openpgp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/keymanager/openpgp.py b/src/leap/keymanager/openpgp.py index 0d5a8667..a8432611 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): |