Set default log level and initialize logger before load config
This commit is contained in:
parent
bc2a9fe87d
commit
c110d98959
@ -218,8 +218,7 @@ fn main() -> std::io::Result<()> {
|
||||
}
|
||||
|
||||
let config = load_config()?;
|
||||
|
||||
std::env::set_var("RUST_LOG", config.log_level().to_str());
|
||||
log::set_max_level(config.log_level().to_str().parse().unwrap());
|
||||
|
||||
let opts: Opts = Opts::parse_args_default_or_exit();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user