Skip to content

Commit 167b59f

Browse files
committed
fix: do not log full URL object on proxy error, only selected parts
Ensures parts like username@password which could be part of the URL are not logged.
1 parent c684b1c commit 167b59f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/transmitter/proxy.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ export function getProxyAgent(
5050
});
5151

5252
default:
53-
logger.error({ url, endpoint }, 'Unsupported protocol for proxying');
53+
logger.error(
54+
{ urlHost: url.host, protocol: url.protocol },
55+
'Unsupported protocol for proxying',
56+
);
5457
throw new Error('Unsupported protocol for proxying');
5558
}
5659
}

0 commit comments

Comments
 (0)