Skip to content

Commit 900a0a5

Browse files
committed
fix: hide debug logs behind debug flag
1 parent 171ae9e commit 900a0a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/mcp-proxy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ const connect = async (client: Client) => {
5858
env: process.env as Record<string, string>,
5959
stderr: "pipe",
6060
onEvent: (event) => {
61-
console.debug("transport event", event);
61+
if (argv.debug) {
62+
console.debug("transport event", event);
63+
}
6264
},
6365
});
6466

0 commit comments

Comments
 (0)