summaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-09-17 17:42:47 -0400
committerKali Kaneko <kali@leap.se>2015-09-17 17:49:26 -0400
commitd38d0aa5836080cfaad90df430ab4a4d14822856 (patch)
tree9ef1bef9442cb89c72717f90ac78199e7b379137 /client/src
parent703fa8efdfa6a201921bae97edc653e60b977b85 (diff)
[refactor] decrease verbosity of sync logs
Diffstat (limited to 'client/src')
-rw-r--r--client/src/leap/soledad/client/http_target/fetch.py5
1 files changed, 3 insertions, 2 deletions
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)