From 6b7572f08912555d96326c5b184879b61bba1da3 Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Mon, 30 Sep 2024 19:41:52 +0200 Subject: [PATCH] logging bugfix --- hblang/src/fs.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {}