putting logger back

This commit is contained in:
Jakub Doka 2024-11-08 08:40:14 +01:00
parent 1b2b9f899d
commit 0ef74d89cb
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -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(),