From 5128c90b3c54546fd840d0efae1624ad69557a53 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 27 Sep 2016 22:11:39 -0300 Subject: [bug] use correct twisted log api for warnings --- src/leap/bitmask/mail/incoming/service.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/leap/bitmask/mail') diff --git a/src/leap/bitmask/mail/incoming/service.py b/src/leap/bitmask/mail/incoming/service.py index 86c3055..b18ed74 100644 --- a/src/leap/bitmask/mail/incoming/service.py +++ b/src/leap/bitmask/mail/incoming/service.py @@ -629,9 +629,9 @@ class IncomingMail(Service): Check for known decryption errors """ if failure.check(keymanager_errors.DecryptError): - logger.warning('Failed to decrypt encrypted message (%s). ' - 'Storing message without modifications.' - % str(failure.value)) + logger.warn('Failed to decrypt encrypted message (%s). ' + 'Storing message without modifications.' + % str(failure.value)) return (msg, None) elif failure.check(keymanager_errors.KeyNotFound): logger.error('Failed to find private key for decryption (%s). ' @@ -705,12 +705,12 @@ class IncomingMail(Service): ): def fetch_error(failure): if failure.check(keymanager_errors.KeyNotFound): - logger.warning("Url from OpenPGP header %s failed" - % (url,)) + logger.warn("Url from OpenPGP header %s failed" + % (url,)) elif failure.check(keymanager_errors.KeyAttributesDiffer): - logger.warning("Key from OpenPGP header url %s didn't " - "match the from address %s" - % (url, address)) + logger.warn("Key from OpenPGP header url %s didn't " + "match the from address %s" + % (url, address)) else: return failure -- cgit v1.2.3