From 6d182d8d0801a40c44a26000ae731a38c1d96218 Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Fri, 20 Sep 2024 12:14:17 +0200 Subject: [PATCH] improve logging during initial sync it is less interesting to see how many rows are written in the db and more interesting knowing the last height indexed --- src/new_index/db.rs | 2 +- src/new_index/fetch.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/new_index/db.rs b/src/new_index/db.rs index 77e1a66d4..b6617d425 100644 --- a/src/new_index/db.rs +++ b/src/new_index/db.rs @@ -154,7 +154,7 @@ impl DB { } pub fn write(&self, mut rows: Vec, flush: DBFlush) { - debug!( + log::trace!( "writing {} rows to {:?}, flush={:?}", rows.len(), self.db, diff --git a/src/new_index/fetch.rs b/src/new_index/fetch.rs index 11843f5d7..d7637ee5c 100644 --- a/src/new_index/fetch.rs +++ b/src/new_index/fetch.rs @@ -99,6 +99,7 @@ fn bitcoind_fetcher( sender .send(block_entries) .expect("failed to send fetched blocks"); + log::debug!("last fetch {:?}", entries.last()); } }), ))