diff --git a/hblang/src/fs.rs b/hblang/src/fs.rs index 2539b04f..3e188526 100644 --- a/hblang/src/fs.rs +++ b/hblang/src/fs.rs @@ -25,7 +25,9 @@ impl log::Log for Logger { } fn log(&self, record: &log::Record) { - eprintln!("{}", record.args()) + if self.enabled(record.metadata()) { + eprintln!("{}", record.args()) + } } fn flush(&self) {}