Skip to content

Commit e41cac2

Browse files
committed
chore: add missing workload name to some logs
1 parent a3d59cd commit e41cac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/kube-scanner/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export = class WorkloadWorker {
2828
logger.info({workloadName, imageCount: uniqueImages.length}, 'pulling unique images');
2929
const pulledImages = await pullImages(uniqueImages);
3030
if (pulledImages.length === 0) {
31-
logger.info({}, 'no images were pulled, halting scanner process.');
31+
logger.info({workloadName}, 'no images were pulled, halting scanner process.');
3232
return;
3333
}
3434

@@ -54,7 +54,7 @@ export = class WorkloadWorker {
5454
const scannedImages: IScanResult[] = await scanImages(pulledImages);
5555

5656
if (scannedImages.length === 0) {
57-
logger.info({}, 'no images were scanned, halting scanner process.');
57+
logger.info({workloadName}, 'no images were scanned, halting scanner process.');
5858
return;
5959
}
6060

0 commit comments

Comments
 (0)