Bump log threshold up; tweak log
This commit is contained in:
parent
24d9e5a95e
commit
88185b0daa
@ -715,8 +715,8 @@ class BlockProcessor(server.db.DB):
|
|||||||
utxo_MB = (db_deletes_size + utxo_cache_size) // one_MB
|
utxo_MB = (db_deletes_size + utxo_cache_size) // one_MB
|
||||||
hist_MB = (hist_cache_size + tx_hash_size) // one_MB
|
hist_MB = (hist_cache_size + tx_hash_size) // one_MB
|
||||||
|
|
||||||
self.logger.info('our height: {:,d} daemon: {:,d} '
|
self.logger.info('our height: {:,d} daemon: {:,d} '
|
||||||
'UTXOs {:,d}MB hist {:,d}MB'
|
'UTXOs {:,d}MB hist {:,d}MB'
|
||||||
.format(self.height, self.daemon.cached_height(),
|
.format(self.height, self.daemon.cached_height(),
|
||||||
utxo_MB, hist_MB))
|
utxo_MB, hist_MB))
|
||||||
|
|
||||||
|
|||||||
@ -211,7 +211,7 @@ class Session(JSONRPC):
|
|||||||
def connection_lost(self, exc):
|
def connection_lost(self, exc):
|
||||||
'''Handle client disconnection.'''
|
'''Handle client disconnection.'''
|
||||||
super().connection_lost(exc)
|
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. '
|
self.logger.info('{} disconnected. '
|
||||||
'Sent {:,d} bytes in {:,d} messages {:,d} errors'
|
'Sent {:,d} bytes in {:,d} messages {:,d} errors'
|
||||||
.format(self.peername(), self.send_size,
|
.format(self.peername(), self.send_size,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user