diff options
author | Kali Kaneko <kali@leap.se> | 2015-09-17 17:42:47 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-09-17 17:49:26 -0400 |
commit | d38d0aa5836080cfaad90df430ab4a4d14822856 (patch) | |
tree | 9ef1bef9442cb89c72717f90ac78199e7b379137 | |
parent | 703fa8efdfa6a201921bae97edc653e60b977b85 (diff) |
[refactor] decrease verbosity of sync logs
-rw-r--r-- | client/src/leap/soledad/client/http_target/fetch.py | 5 |
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) |