summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2015-08-03 12:21:25 -0300
committerRuben Pollan <meskio@sindominio.net>2015-08-04 18:50:25 +0200
commit1dc70e26c929aabda689dcbfe96fc98e693bda4a (patch)
tree17009e5796806f0d91bb31e266757d2ca8d8e883
parent0d8455007283fba00fa1747a30974de12fbe251c (diff)
[bug] add log msg to sent docs on sync
-rw-r--r--client/src/leap/soledad/client/http_target.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/client/src/leap/soledad/client/http_target.py b/client/src/leap/soledad/client/http_target.py
index 9ed70568..3589952a 100644
--- a/client/src/leap/soledad/client/http_target.py
+++ b/client/src/leap/soledad/client/http_target.py
@@ -311,9 +311,11 @@ class SoledadHTTPSyncTarget(SyncTarget):
if self._defer_encryption:
self._sync_enc_pool.delete_encrypted_doc(
doc.doc_id, doc.rev)
- emit(SOLEDAD_SYNC_SEND_STATUS,
- "Soledad sync send status: %d/%d"
- % (idx, total))
+ msg = "%d/%d" % (idx, total)
+ emit(
+ SOLEDAD_SYNC_SEND_STATUS,
+ "Soledad sync send status: %s" % msg)
+ logger.debug("Sync send status: %s" % msg)
response_dict = json.loads(result)[0]
gen_after_send = response_dict['new_generation']
trans_id_after_send = response_dict['new_transaction_id']