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

This commit is contained in:
ghassmo
2022-05-31 04:45:35 +03:00
parent 01ac20aab4
commit f727f6e414

View File

@@ -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