浏览代码

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

ghassmo 4 年之前
父节点
当前提交
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::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