From 0ef74d89cb324d1441370e611cb2ceb3d4e5290f Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Fri, 8 Nov 2024 08:40:14 +0100 Subject: [PATCH] putting logger back --- lang/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lang/src/main.rs b/lang/src/main.rs index 407600d..5e9221f 100644 --- a/lang/src/main.rs +++ b/lang/src/main.rs @@ -12,6 +12,9 @@ fn main() { hblang::run_compiler(file, opts, out) } + log::set_logger(&hblang::fs::Logger).unwrap(); + log::set_max_level(log::LevelFilter::Error); + let mut out = Vec::new(); match run(&mut out) { Ok(_) => std::io::stdout().write_all(&out).unwrap(),