From 78f0eedf5cd4451540807b2d656ede1d96c9e31c Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 9 Dec 2014 15:37:58 -0600 Subject: log any soledad exception during initialization --- src/leap/bitmask/services/soledad/soledadbootstrapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/leap/bitmask/services/soledad/soledadbootstrapper.py b/src/leap/bitmask/services/soledad/soledadbootstrapper.py index 745645f3..a360b5c2 100644 --- a/src/leap/bitmask/services/soledad/soledadbootstrapper.py +++ b/src/leap/bitmask/services/soledad/soledadbootstrapper.py @@ -277,13 +277,14 @@ class SoledadBootstrapper(AbstractBootstrapper): server_url, cert_file, token) logger.debug("Soledad has been initialized.") return - except Exception: + except Exception as exc: init_tries += 1 msg = "Init failed, retrying... (retry {0} of {1})".format( init_tries, self.MAX_INIT_RETRIES) logger.warning(msg) continue + logger.exception(exc) raise SoledadInitError() def load_and_sync_soledad(self, uuid=None, offline=False): -- cgit v1.2.3