From 76ba9b81f5065a0368bb0f24a865139011233bc6 Mon Sep 17 00:00:00 2001 From: Lijun Wang <83639177+lijunwangs@users.noreply.github.com> Date: Thu, 30 Jan 2025 06:38:26 -0800 Subject: [PATCH] added debug messages --- local-cluster/src/local_cluster_snapshot_utils.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/local-cluster/src/local_cluster_snapshot_utils.rs b/local-cluster/src/local_cluster_snapshot_utils.rs index 6240ade176c086..65fe06d49068ac 100644 --- a/local-cluster/src/local_cluster_snapshot_utils.rs +++ b/local-cluster/src/local_cluster_snapshot_utils.rs @@ -93,6 +93,7 @@ impl LocalCluster { if let Some(full_snapshot_archive_info) = snapshot_utils::get_highest_full_snapshot_archive_info(&full_snapshot_archives_dir) { + trace!("Got snapshot info: {:?}", full_snapshot_archive_info); match next_snapshot_type { NextSnapshotType::FullSnapshot => { if full_snapshot_archive_info.slot() >= last_slot { @@ -115,6 +116,11 @@ impl LocalCluster { } } } + } else { + trace!( + "Could not get snapshot info from {:?}", + full_snapshot_archives_dir.as_ref() + ); } if let Some(max_wait_duration) = max_wait_duration { assert!(