From d38d0aa5836080cfaad90df430ab4a4d14822856 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 17 Sep 2015 17:42:47 -0400 Subject: [refactor] decrease verbosity of sync logs --- client/src/leap/soledad/client/http_target/fetch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/src/leap/soledad/client/http_target/fetch.py b/client/src/leap/soledad/client/http_target/fetch.py index 57578563..65e576d9 100644 --- a/client/src/leap/soledad/client/http_target/fetch.py +++ b/client/src/leap/soledad/client/http_target/fetch.py @@ -247,5 +247,6 @@ def _emit_receive_status(received_docs, total): content = {'received': received_docs, 'total': total} emit_async(SOLEDAD_SYNC_RECEIVE_STATUS, content) - msg = "%d/%d" % (received_docs, total) - logger.debug("Sync receive status: %s" % msg) + if received_docs % 20 == 0: + msg = "%d/%d" % (received_docs, total) + logger.debug("Sync receive status: %s" % msg) -- cgit v1.2.3