Skip to content

Commit

Permalink
Fix term log level limiter when log-file option set
Browse files Browse the repository at this point in the history
  • Loading branch information
zxcat authored Oct 19, 2023
1 parent c2c56d7 commit 14efc8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl Application for RusticApp {

Some(file) => CombinedLogger::init(vec![
TermLogger::new(
level_filter.max(LevelFilter::Warn),
level_filter.min(LevelFilter::Warn),
simplelog::ConfigBuilder::new()
.set_time_level(LevelFilter::Off)
.build(),
Expand Down

0 comments on commit 14efc8b

Please sign in to comment.