use level filters instead

This commit is contained in:
OlivierDehaene 2024-09-20 15:17:45 +02:00
parent 6c9b5de2b7
commit e6df56d070
No known key found for this signature in database
GPG Key ID: BB104D67809DA93C

View File

@ -1038,8 +1038,7 @@ fn log_lines<R: Sized + Read>(mut bufread: BufReader<R>) {
Ok(log) => log.trace(),
// For interactive debugging ?
Err(_) => {
#[cfg(debug_assertions)]
{
if LevelFilter::current() >= tracing::Level::DEBUG {
stdout.write_all(line).unwrap();
if lines.peek().is_some() {
stdout.write_all(b"\n").unwrap();