From 8e3c420414da791d263aa4a9fe79a103ca5179ed Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Wed, 15 Sep 2021 07:39:21 -0500 Subject: [PATCH] Add logging after taking a bank snapshot (#19891) --- runtime/src/accounts_background_service.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/src/accounts_background_service.rs b/runtime/src/accounts_background_service.rs index f6283f6f0b..d225403f47 100644 --- a/runtime/src/accounts_background_service.rs +++ b/runtime/src/accounts_background_service.rs @@ -217,6 +217,12 @@ impl SnapshotRequestHandler { } } snapshot_time.stop(); + info!("Took bank snapshot. snapshot type: {:?}, slot: {}, accounts hash: {}, bank hash: {}", + snapshot_type, + snapshot_root_bank.slot(), + snapshot_root_bank.get_accounts_hash(), + snapshot_root_bank.hash(), + ); // Cleanup outdated snapshots let mut purge_old_snapshots_time = Measure::start("purge_old_snapshots_time");