summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/src/leap/soledad/client/api.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/client/src/leap/soledad/client/api.py b/client/src/leap/soledad/client/api.py
index b2cabe08..ce026cdf 100644
--- a/client/src/leap/soledad/client/api.py
+++ b/client/src/leap/soledad/client/api.py
@@ -39,12 +39,11 @@ try:
except ImportError:
import chardet
+from StringIO import StringIO
from u1db.remote import http_client
from u1db.remote.ssl_match_hostname import match_hostname
from zope.interface import implements
-from twisted.python import log
-
from leap.common.config import get_path_prefix
from leap.soledad.common import SHARED_DB_NAME
@@ -663,8 +662,10 @@ class Soledad(object):
# that logs the failure and does not propagate it down the callback
# chain
def _errback(failure):
- log.err(failure)
- logger.error("Soledad exception when syncing: %s" % str(failure))
+ s = StringIO()
+ failure.printDetailedTraceback(file=s)
+ msg = "Soledad exception when syncing!\n" + s.getvalue()
+ logger.error(msg)
d.addCallbacks(on_sync_done, _errback)
return d