summaryrefslogtreecommitdiff
path: root/mail/src/leap
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
commitfc0e04a5abe379a82ad54796d630e237b4800dbe (patch)
tree7035b707db4ad44d88bf54f310b8f1eb41ac328f /mail/src/leap
parent1bd1fbe526efec01b9ed877e39686231a17c7ab7 (diff)
[refactor] log failure properly
Diffstat (limited to 'mail/src/leap')
-rw-r--r--mail/src/leap/mail/incoming/service.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mail/src/leap/mail/incoming/service.py b/mail/src/leap/mail/incoming/service.py
index 71edf089..4738dd4b 100644
--- a/mail/src/leap/mail/incoming/service.py
+++ b/mail/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):
"""