Skip to content

Commit

Permalink
improve logging during initial sync
Browse files Browse the repository at this point in the history
it is less interesting to see how many rows are written in the db and
more interesting knowing the last height indexed
  • Loading branch information
RCasatta committed Sep 24, 2024
1 parent f122121 commit 6d182d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/new_index/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl DB {
}

pub fn write(&self, mut rows: Vec<DBRow>, flush: DBFlush) {
debug!(
log::trace!(
"writing {} rows to {:?}, flush={:?}",
rows.len(),
self.db,
Expand Down
1 change: 1 addition & 0 deletions src/new_index/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ fn bitcoind_fetcher(
sender
.send(block_entries)
.expect("failed to send fetched blocks");
log::debug!("last fetch {:?}", entries.last());
}
}),
))
Expand Down

0 comments on commit 6d182d8

Please sign in to comment.