From 14efc8b1a86799813f03a416a6d5c2d543c8d7f3 Mon Sep 17 00:00:00 2001 From: zxcat <550974+zxcat@users.noreply.github.com> Date: Thu, 19 Oct 2023 22:28:01 +0300 Subject: [PATCH] Fix term log level limiter when `log-file` option set --- src/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application.rs b/src/application.rs index 94f8e4506..17b77f33c 100644 --- a/src/application.rs +++ b/src/application.rs @@ -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(),