the mize bin works

This commit is contained in:
Sebastian Moser
2026-09-19 23:47:12 +00:00
parent d559159397
commit e96e93a5a0
8 changed files with 57 additions and 103 deletions

View File

@@ -2,6 +2,7 @@
static PROTO_VERSION: u8 = 1;
use std::cell::RefCell;
use std::fmt::format;

View File

@@ -159,16 +159,6 @@ pub fn init_logger(cli_matches: &ArgMatches) {
));
}
// check --silent flag
if cli_matches.get_flag("silent") {
if log_level != DEFAULT_LOG_LEVEL {
log_messages.push((Level::WARN, format!(
"The loglevel was set by some method (it's not the DEFAULT_LOG_LEVEL) and is now overwritten by the --siltne to be OFF"
)))
}
log_level = LevelFilter::OFF;
}
// actually set the log_level on the builder
log_messages.push((Level::INFO, format!("loglevel is now {}", log_level)));