From bd4ebee2da0f0cc50e17a59535cbfdd2fe892216 Mon Sep 17 00:00:00 2001 From: peilun-conflux <48905552+peilun-conflux@users.noreply.github.com> Date: Thu, 11 Apr 2024 17:15:05 +0800 Subject: [PATCH] Change some log level. (#46) * Change some log level. * Add log for flow root commit. --- node/log_entry_sync/src/sync_manager/log_entry_fetcher.rs | 2 +- node/storage/src/log_store/log_manager.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/node/log_entry_sync/src/sync_manager/log_entry_fetcher.rs b/node/log_entry_sync/src/sync_manager/log_entry_fetcher.rs index c3889e9..0f046c8 100644 --- a/node/log_entry_sync/src/sync_manager/log_entry_fetcher.rs +++ b/node/log_entry_sync/src/sync_manager/log_entry_fetcher.rs @@ -318,7 +318,7 @@ impl LogEntryFetcher { info!("log sync to block number {:?}", progress); } Ok(None) => { - error!( + debug!( "log sync gets entries without progress? old_progress={}", progress ) diff --git a/node/storage/src/log_store/log_manager.rs b/node/storage/src/log_store/log_manager.rs index 428aa44..0eabe8e 100644 --- a/node/storage/src/log_store/log_manager.rs +++ b/node/storage/src/log_store/log_manager.rs @@ -178,6 +178,10 @@ impl LogStoreWrite for LogManager { // TODO(zz): Should we validate received tx? self.append_subtree_list(tx.merkle_nodes.clone())?; self.commit_merkle(tx.seq)?; + debug!( + "commit flow root: root={:?}", + self.pora_chunks_merkle.root() + ); if let Some(old_tx_seq) = maybe_same_data_tx_seq { if self.check_tx_completed(old_tx_seq)? {