Silence TCP client messages on stdout, log them in the future
This commit is contained in:
parent
d39baa3b4e
commit
2094ff1aaf
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue