From 1dc70e26c929aabda689dcbfe96fc98e693bda4a Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 3 Aug 2015 12:21:25 -0300 Subject: [bug] add log msg to sent docs on sync --- client/src/leap/soledad/client/http_target.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'client/src/leap/soledad') 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'] -- cgit v1.2.3