on master help sign in
Silence TCP client messages on stdout, log them in the future
2094ff1Blaž Hrastnik
helix-dap/src/client.rs+4
@@ -115,6 +115,10 @@ impl Client {
115 let process = Command::new(cmd)
115 let process = Command::new(cmd)
116 .args(args)
116 .args(args)
117 .args(port_format.replace("{}", &port.to_string()).split(' '))
117 .args(port_format.replace("{}", &port.to_string()).split(' '))
118+ // silence messages
119+ .stdin(Stdio::null())
120+ .stdout(Stdio::null())
121+ .stderr(Stdio::null())
118 // make sure the process is reaped on drop
122 // make sure the process is reaped on drop
119 .kill_on_drop(true)
123 .kill_on_drop(true)
120 .spawn()?;
124 .spawn()?;