From 88185b0daa3490be59c67efe290b88e7dacf3817 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Fri, 18 Nov 2016 22:18:44 +0900 Subject: [PATCH] Bump log threshold up; tweak log --- server/block_processor.py | 4 ++-- server/protocol.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/block_processor.py b/server/block_processor.py index cbac8fd..f792e36 100644 --- a/server/block_processor.py +++ b/server/block_processor.py @@ -715,8 +715,8 @@ class BlockProcessor(server.db.DB): utxo_MB = (db_deletes_size + utxo_cache_size) // one_MB hist_MB = (hist_cache_size + tx_hash_size) // one_MB - self.logger.info('our height: {:,d} daemon: {:,d} ' - 'UTXOs {:,d}MB hist {:,d}MB' + self.logger.info('our height: {:,d} daemon: {:,d} ' + 'UTXOs {:,d}MB hist {:,d}MB' .format(self.height, self.daemon.cached_height(), utxo_MB, hist_MB)) diff --git a/server/protocol.py b/server/protocol.py index da6cbd5..e21fd45 100644 --- a/server/protocol.py +++ b/server/protocol.py @@ -211,7 +211,7 @@ class Session(JSONRPC): def connection_lost(self, exc): '''Handle client disconnection.''' super().connection_lost(exc) - if self.error_count or self.send_size >= 250000: + if self.error_count or self.send_size >= 1024*1024: self.logger.info('{} disconnected. ' 'Sent {:,d} bytes in {:,d} messages {:,d} errors' .format(self.peername(), self.send_size,