From cbe1ef60ca0be494b4199ebd38776e362363d7f0 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Fri, 14 Oct 2016 20:26:10 +0900 Subject: [PATCH] Better logging --- server/db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/db.py b/server/db.py index cb7240f..3af0225 100644 --- a/server/db.py +++ b/server/db.py @@ -400,8 +400,9 @@ class DB(object): self.logger.info('flushing UTXOs: {:,d} txs and {:,d} blocks' .format(self.tx_count - self.db_tx_count, self.height - self.db_height)) - self.flush_to_fs() + else: + self.logger.info('commencing history flush') with self.db.write_batch(transaction=True) as batch: if flush_utxos: