Skip to content
Snippets Groups Projects
Commit dc74c280 authored by Éloïs's avatar Éloïs
Browse files

[ref] core: remove useless combined logger

parent 1fcf497a
No related branches found
No related tags found
1 merge request!127Elois/fixs
...@@ -739,7 +739,7 @@ pub fn init_logger(profile: &str, soft_name: &'static str, cli_args: &ArgMatches ...@@ -739,7 +739,7 @@ pub fn init_logger(profile: &str, soft_name: &'static str, cli_args: &ArgMatches
.expect("Fatal error : fail to create log file path !"); .expect("Fatal error : fail to create log file path !");
} }
CombinedLogger::init(vec![WriteLogger::new( WriteLogger::init(
log_level.to_level_filter(), log_level.to_level_filter(),
logger_config, logger_config,
OpenOptions::new() OpenOptions::new()
...@@ -751,7 +751,7 @@ pub fn init_logger(profile: &str, soft_name: &'static str, cli_args: &ArgMatches ...@@ -751,7 +751,7 @@ pub fn init_logger(profile: &str, soft_name: &'static str, cli_args: &ArgMatches
.expect("Fatal error : fail to get log file path !"), .expect("Fatal error : fail to get log file path !"),
) )
.expect("Fatal error : fail to open log file !"), .expect("Fatal error : fail to open log file !"),
)]) )
.expect("Fatal error : fail to init logger !"); .expect("Fatal error : fail to init logger !");
info!("Successfully init logger"); info!("Successfully init logger");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment