diff --git a/launcher/src/main.rs b/launcher/src/main.rs index 175244ffd8e..deb18478484 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -1038,11 +1038,13 @@ fn log_lines(mut bufread: BufReader) { Ok(log) => log.trace(), // For interactive debugging ? Err(_) => { - stdout.write_all(line).unwrap(); - if lines.peek().is_some() { - stdout.write_all(b"\n").unwrap(); + if LevelFilter::current() >= tracing::Level::DEBUG { + stdout.write_all(line).unwrap(); + if lines.peek().is_some() { + stdout.write_all(b"\n").unwrap(); + } + stdout.flush().unwrap(); } - stdout.flush().unwrap(); } } }