Silence TCP client messages on stdout, log them in the future

This commit is contained in:
Blaž Hrastnik 2021-08-16 18:18:50 +09:00
parent d39baa3b4e
commit 2094ff1aaf

View file

@ -115,6 +115,10 @@ pub async fn tcp_process(
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()?;