refactor(cli): cli example was weird

This commit is contained in:
Christoph J. Scherr 2024-07-09 19:29:20 +02:00
parent 87dc2871d7
commit b382b3e501
1 changed files with 1 additions and 11 deletions

View File

@ -23,17 +23,7 @@ struct Cli {
fn main() {
let cli = Cli::parse();
let _logger = {
let mut this = {
let mut this = Logger::builder();
let max_level = cli.verbosity.level();
this.max_level = max_level;
this
};
this.show_time = false;
this
}
.build();
let _logger = Logger::builder().set_level(cli.verbosity.level()).build();
debug!("logger initialized with level: {}", cli.verbosity.level());