Skip to content

Commit

Permalink
fix log level problems
Browse files Browse the repository at this point in the history
  • Loading branch information
djugei committed Sep 14, 2024
1 parent 948b0a7 commit a0520c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ fn main() {
// set up a logger that does not conflict with progress bars
let logger = env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).build();
let multi = MultiProgress::new();
let level = logger.filter();

indicatif_log_bridge::LogWrapper::new(multi.clone(), logger)
.try_init()
.expect("initializing logger failed");
log::set_max_level(level);

let args = Commands::parse();

Expand Down

0 comments on commit a0520c7

Please sign in to comment.