Skip to content

Commit c684b1c

Browse files
author
Amir Moualem
authored
Merge pull request #857 from snyk/fix/unbounded-logging
fix: don't attempt to log an entire pod object
2 parents dec45b1 + 3a62702 commit c684b1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/supervisor/metadata-extractor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export async function buildMetadataForWorkload(
177177

178178
if (podOwner === undefined) {
179179
logger.info(
180-
{ pod },
180+
{ podMetadata: pod.metadata },
181181
'pod associated with owner, but owner not found. not building metadata.',
182182
);
183183
return undefined;

0 commit comments

Comments
 (0)