summaryrefslogtreecommitdiff
path: root/src/leap/mail
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-06-09 11:32:33 -0400
committerKali Kaneko <kali@leap.se>2015-06-09 11:32:33 -0400
commita94677b94326ffa2900141092c70d9559e01853a (patch)
tree35616893cdb19689a97c76ec79629420850dfe65 /src/leap/mail
parentccc627d7b84b8649c1ec9c49504a1b662af40707 (diff)
[refactor] log failure properly
Diffstat (limited to 'src/leap/mail')
-rw-r--r--src/leap/mail/incoming/service.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/leap/mail/incoming/service.py b/src/leap/mail/incoming/service.py
index 71edf08..4738dd4 100644
--- a/src/leap/mail/incoming/service.py
+++ b/src/leap/mail/incoming/service.py
@@ -162,7 +162,7 @@ class IncomingMail(Service):
in a separate thread
"""
def _sync_errback(failure):
- failure.printTraceback()
+ log.err(failure)
def syncSoledadCallback(_):
# XXX this should be moved to adaptors
@@ -206,8 +206,7 @@ class IncomingMail(Service):
# synchronize incoming mail
def _errback(self, failure):
- logger.exception(failure.value)
- traceback.print_exc()
+ log.err(failure)
def _sync_soledad(self):
"""