Skip to content

Commit

Permalink
v1.16: Downgrades log to debug if reading bank snapshot from dir fail…
Browse files Browse the repository at this point in the history
…s (backport of #31990) (#31994)

* Downgrades log to debug if reading bank snapshot from dir fails (#31990)

(cherry picked from commit f08fb3e)

# Conflicts:
#	runtime/src/snapshot_utils.rs

---------

Co-authored-by: Brooks <[email protected]>
  • Loading branch information
mergify[bot] and brooksprumo authored Jun 6, 2023
1 parent c69b335 commit 859ca81
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions runtime/src/snapshot_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -860,12 +860,8 @@ pub fn get_bank_snapshots(bank_snapshots_dir: impl AsRef<Path>) -> Vec<BankSnaps
})
.for_each(
|slot| match BankSnapshotInfo::new_from_dir(&bank_snapshots_dir, slot) {
Ok(snapshot_info) => {
bank_snapshots.push(snapshot_info);
}
Err(err) => {
error!("Unable to read bank snapshot for slot {}: {}", slot, err);
}
Ok(snapshot_info) => bank_snapshots.push(snapshot_info),
Err(err) => debug!("Unable to read bank snapshot for slot {slot}: {err}"),
},
),
}
Expand Down

0 comments on commit 859ca81

Please sign in to comment.