We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f478aa7 commit 7e2d188Copy full SHA for 7e2d188
launcher/src/main.rs
@@ -1038,11 +1038,13 @@ fn log_lines<R: Sized + Read>(mut bufread: BufReader<R>) {
1038
Ok(log) => log.trace(),
1039
// For interactive debugging ?
1040
Err(_) => {
1041
- stdout.write_all(line).unwrap();
1042
- if lines.peek().is_some() {
1043
- stdout.write_all(b"\n").unwrap();
+ if LevelFilter::current() >= tracing::Level::DEBUG {
+ stdout.write_all(line).unwrap();
+ if lines.peek().is_some() {
1044
+ stdout.write_all(b"\n").unwrap();
1045
+ }
1046
+ stdout.flush().unwrap();
1047
}
- stdout.flush().unwrap();
1048
1049
1050
0 commit comments