(&self, ostream: Ostream, output: &dyn fmt::Display)
| 626 | } |
| 627 | |
| 628 | fn log_output(&self, ostream: Ostream, output: &dyn fmt::Display) { |
| 629 | if let Some(level) = self.cmd.0.log_cmd { |
| 630 | let pid = self.child.id(); |
| 631 | let bin_name = self.cmd.bin_name(); |
| 632 | log::log!(level, "[{} {} {}] {}", ostream, pid, bin_name, output,); |
| 633 | } |
| 634 | } |
| 635 | |
| 636 | /// Returns an iterator over the lines of data output to `stdout` by the child process. |
| 637 | /// Beware that the iterator buffers the output, thus when the it is |
no test coverage detected