From 77a2ee915844260e8663fdafdc51dee47c878cfc Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Fri, 9 Jun 2023 17:10:19 +0530 Subject: [PATCH] mgr/snap_schedule: rephrase log message when pruning Signed-off-by: Milind Changire (cherry picked from commit af9dbaf318a9b11e6b5c89ad23b6af91cfb5fdfa) --- src/pybind/mgr/snap_schedule/fs/schedule_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/snap_schedule/fs/schedule_client.py b/src/pybind/mgr/snap_schedule/fs/schedule_client.py index a490d771d0525..28d54639a3e0a 100644 --- a/src/pybind/mgr/snap_schedule/fs/schedule_client.py +++ b/src/pybind/mgr/snap_schedule/fs/schedule_client.py @@ -112,8 +112,8 @@ def get_prune_set(candidates: Set[Tuple[cephfs.DirEntry, datetime]], f'{period_count}{period}')) break if len(keep) > max_snaps_to_retain: - log.info((f'Would keep more then {max_snaps_to_retain}, ' - 'pruning keep set')) + log.info(f'Pruning keep set; would retain first {max_snaps_to_retain}' + f' out of {len(keep)} snaps') keep = keep[:max_snaps_to_retain] return candidates - set(keep) -- 2.39.5