Skip to content

Commit 812c506

Browse files
committed
fix: remove debug logging of cache
1 parent bc52059 commit 812c506

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/state.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,6 @@ export function getWorkloadImageAlreadyScanned(
7070
imageName: string,
7171
imageId: string,
7272
): string | undefined {
73-
const cachedImages = state.imagesAlreadyScanned.dump().map((entry) => {
74-
const values = new Array<string>();
75-
for (const v in entry.v.values()) {
76-
values.push(v);
77-
}
78-
return `entry: ${entry.e}, key: ${entry.k}; values: ${values.join(',')}`;
79-
});
80-
logger.debug(
81-
{ 'kubernetes-monitor': { cachedImages } },
82-
'images in the cache',
83-
);
84-
8573
const key = getWorkloadImageAlreadyScannedKey(workload, imageName);
8674
const hasImageId = state.imagesAlreadyScanned.get(key)?.has(imageId);
8775
const response = hasImageId ? imageId : undefined;

0 commit comments

Comments
 (0)