Просмотр исходного кода

util/cli: make the log level and log config the same for write logger

ghassmo 4 лет назад
Родитель
Сommit
f727f6e414
1 измененных файлов с 1 добавлено и 5 удалено
  1. 1 5
      src/util/cli.rs

+ 1 - 5
src/util/cli.rs

@@ -174,11 +174,7 @@ macro_rules! async_daemonize {
                     simplelog::TerminalMode::Mixed,
                     simplelog::TerminalMode::Mixed,
                     simplelog::ColorChoice::Auto,
                     simplelog::ColorChoice::Auto,
                 ),
                 ),
-                simplelog::WriteLogger::new(
-                    simplelog::LevelFilter::Debug,
-                    simplelog::Config::default(),
-                    env_log_file_path,
-                ),
+                simplelog::WriteLogger::new(log_level, log_config, env_log_file_path),
             ])?;
             ])?;
 
 
             // https://docs.rs/smol/latest/smol/struct.Executor.html#examples
             // https://docs.rs/smol/latest/smol/struct.Executor.html#examples