Silence TCP client messages on stdout, log them in the future
commit2094ff1aaf08be492ccf052d189446a2c8a5a15e
authorBlaž Hrastnik <blaz@mxxn.io>
dateMon 16 Aug 2021, 18:18 (5 years ago)
parentd39baa3
helix-dap/src/client.rs+4
@@ -115,6 +115,10 @@ impl Client {
115115 let process = Command::new(cmd)
116116 .args(args)
117117 .args(port_format.replace("{}", &port.to_string()).split(' '))
118+ // silence messages
119+ .stdin(Stdio::null())
120+ .stdout(Stdio::null())
121+ .stderr(Stdio::null())
118122 // make sure the process is reaped on drop
119123 .kill_on_drop(true)
120124 .spawn()?;