Skip to content

Commit c169f6d

Browse files
committed
fix: do not log whole pod object, only its metadata
1 parent 167b59f commit c169f6d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/supervisor/metadata-extractor.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ export async function buildMetadataForWorkload(
147147
}
148148

149149
if (!(pod.status && pod.status.containerStatuses)) {
150-
logger.warn({ pod }, 'pod lacks status or status.containerStatus');
150+
logger.warn(
151+
{ podMetadata: pod.metadata },
152+
'pod lacks status or status.containerStatus',
153+
);
151154
return undefined;
152155
}
153156

src/transmitter/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function getProxyAgent(
5151

5252
default:
5353
logger.error(
54-
{ urlHost: url.host, protocol: url.protocol },
54+
{ urlHost: url.host, urlProtocol: url.protocol },
5555
'Unsupported protocol for proxying',
5656
);
5757
throw new Error('Unsupported protocol for proxying');

0 commit comments

Comments
 (0)