1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00

secscan: Log start and end index of block in clair (PROJQUAY-3287) (#1165)

This is useful for debugging which block is being processed
This commit is contained in:
Syed Mushtaq Ahmed
2022-03-03 12:52:12 -05:00
committed by GitHub
parent 992bc5c3cc
commit 2b2e795b9c

View File

@@ -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()