Add logging of incremental snapshots to purge_old_snapshot_archives() (#19874)

This commit is contained in:
Brooks Prumo 2021-09-14 17:49:15 -05:00 committed by GitHub
parent 60276da1fd
commit 21bc7e94f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1233,9 +1233,10 @@ pub fn purge_old_snapshot_archives<P>(
P: AsRef<Path>,
{
info!(
"Purging old snapshot archives in {}, retaining {} full snapshots",
"Purging old snapshot archives in {}, retaining {} full snapshots and {} incremental snapshots",
snapshot_archives_dir.as_ref().display(),
maximum_full_snapshot_archives_to_retain
maximum_full_snapshot_archives_to_retain,
maximum_incremental_snapshot_archives_to_retain
);
let mut snapshot_archives = get_full_snapshot_archives(&snapshot_archives_dir);
snapshot_archives.sort_unstable();