From d2ef1208f537187f72c3a7c688817751370c1eb9 Mon Sep 17 00:00:00 2001 From: Xiang Zhu Date: Fri, 28 Apr 2023 13:53:56 -0700 Subject: [PATCH] Add slot info in the bank loading log --- runtime/src/snapshot_utils.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index bd40a4e5b11a25..fa729d3ca421c0 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -1758,11 +1758,12 @@ pub fn bank_from_latest_snapshot_dir( accounts_update_notifier: Option, exit: &Arc, ) -> Result { - info!("Loading bank from snapshot dir"); let bank_snapshot = get_highest_bank_snapshot_post(&bank_snapshots_dir).ok_or_else(|| { SnapshotError::NoSnapshotSlotDir(bank_snapshots_dir.as_ref().to_path_buf()) })?; + info!("Loading bank from snapshot dir {:?}", bank_snapshot.slot); + let (bank, timings) = bank_from_snapshot_dir( account_paths, &bank_snapshot,