From 2b2e795b9c65e055c221304c43ef5cdbe91c563e Mon Sep 17 00:00:00 2001 From: Syed Mushtaq Ahmed Date: Thu, 3 Mar 2022 12:52:12 -0500 Subject: [PATCH] secscan: Log start and end index of block in clair (PROJQUAY-3287) (#1165) This is useful for debugging which block is being processed --- util/migrate/allocator.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/util/migrate/allocator.py b/util/migrate/allocator.py index cdd9e9cba..72ef902d2 100644 --- a/util/migrate/allocator.py +++ b/util/migrate/allocator.py @@ -166,7 +166,12 @@ def yield_random_entries(batch_query, primary_key_field, batch_size, max_id, min allocator.mark_completed(start_index, end_index) continue - logger.info("Found %s candidates, processing block", len(all_candidates)) + logger.info( + "Found %s candidates, processing block start: %d end: %d", + len(all_candidates), + start_index, + end_index, + ) batch_completed = 0 for candidate in all_candidates: abort_early = Event()