]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/snap_schedule: rephrase log message when pruning 52749/head
authorMilind Changire <mchangir@redhat.com>
Fri, 9 Jun 2023 11:40:19 +0000 (17:10 +0530)
committerMilind Changire <mchangir@redhat.com>
Wed, 2 Aug 2023 06:27:46 +0000 (11:57 +0530)
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit af9dbaf318a9b11e6b5c89ad23b6af91cfb5fdfa)

src/pybind/mgr/snap_schedule/fs/schedule_client.py

index a490d771d052596c772a1a2c019aa36fc5405ac7..28d54639a3e0ae913264ff6e5983a28e4845cd55 100644 (file)
@@ -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)