Unverified Commit 7e2d1887 authored by OlivierDehaene's avatar OlivierDehaene Committed by GitHub
Browse files

fix: wrap python basic logs in debug assertion in launcher (#2539)

* fix: wrap python basic logs in debug assertion in launcher

* use level filters instead
parent f478aa77
...@@ -1038,11 +1038,13 @@ fn log_lines<R: Sized + Read>(mut bufread: BufReader<R>) { ...@@ -1038,11 +1038,13 @@ fn log_lines<R: Sized + Read>(mut bufread: BufReader<R>) {
Ok(log) => log.trace(), Ok(log) => log.trace(),
// For interactive debugging ? // For interactive debugging ?
Err(_) => { Err(_) => {
stdout.write_all(line).unwrap(); if LevelFilter::current() >= tracing::Level::DEBUG {
if lines.peek().is_some() { stdout.write_all(line).unwrap();
stdout.write_all(b"\n").unwrap(); if lines.peek().is_some() {
stdout.write_all(b"\n").unwrap();
}
stdout.flush().unwrap();
} }
stdout.flush().unwrap();
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment