From 2094ff1aaf08be492ccf052d189446a2c8a5a15e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 16 Aug 2021 18:18:50 +0900 Subject: [PATCH] Silence TCP client messages on stdout, log them in the future --- helix-dap/src/client.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs index baf924b9..0f647681 100644 --- a/helix-dap/src/client.rs +++ b/helix-dap/src/client.rs @@ -115,6 +115,10 @@ impl Client { let process = Command::new(cmd) .args(args) .args(port_format.replace("{}", &port.to_string()).split(' ')) + // silence messages + .stdin(Stdio::null()) + .stdout(Stdio::null()) + .stderr(Stdio::null()) // make sure the process is reaped on drop .kill_on_drop(true) .spawn()?;