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
This commit is contained in:
parent
f478aa77ad
commit
7e2d18877e
|
@ -1038,6 +1038,7 @@ fn log_lines<R: Sized + Read>(mut bufread: BufReader<R>) {
|
|||
Ok(log) => log.trace(),
|
||||
// For interactive debugging ?
|
||||
Err(_) => {
|
||||
if LevelFilter::current() >= tracing::Level::DEBUG {
|
||||
stdout.write_all(line).unwrap();
|
||||
if lines.peek().is_some() {
|
||||
stdout.write_all(b"\n").unwrap();
|
||||
|
@ -1050,6 +1051,7 @@ fn log_lines<R: Sized + Read>(mut bufread: BufReader<R>) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn find_num_shards(
|
||||
sharded: Option<bool>,
|
||||
|
|
Loading…
Reference in New Issue