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

imgbot
Blaž Hrastnik 3 years ago
parent d39baa3b4e
commit 2094ff1aaf

@ -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()?;

Loading…
Cancel
Save