From 052e10cf8b6906508ff51ec1c48c045db1b959a5 Mon Sep 17 00:00:00 2001 From: peilun-conflux <48905552+peilun-conflux@users.noreply.github.com> Date: Mon, 15 Apr 2024 11:16:56 +0800 Subject: [PATCH] Add more log for debug. (#53) --- node/storage/src/log_store/flow_store.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node/storage/src/log_store/flow_store.rs b/node/storage/src/log_store/flow_store.rs index 3933067..a48d211 100644 --- a/node/storage/src/log_store/flow_store.rs +++ b/node/storage/src/log_store/flow_store.rs @@ -395,11 +395,11 @@ impl FlowDBStore { for r in self.kvdb.iter(COL_ENTRY_BATCH_ROOT) { let (index_bytes, root_bytes) = r?; let (batch_index, subtree_depth) = decode_batch_root_key(index_bytes.as_ref())?; - debug!( - "load root depth={}, index expected={} get={}", - subtree_depth, expected_index, batch_index - ); let root = DataRoot::from_slice(root_bytes.as_ref()); + debug!( + "load root depth={}, index expected={} get={} root={:?}", + subtree_depth, expected_index, batch_index, root, + ); if subtree_depth == 1 { if range_root.is_none() { // This is expected to be the next leaf.