Procházet zdrojové kódy

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

ghassmo před 4 roky
rodič
revize
f727f6e414
1 změnil soubory, kde provedl 1 přidání a 5 odebrání
  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