1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00

Remove verbose configuration

Please use `RUST_LOG` or `--log-filter` to specify logging verbosity.
See https://github.com/env-logger-rs/env_logger/ for details.
This commit is contained in:
Roman Zeyde 2021-11-08 14:58:50 +02:00
parent 8c28579ea9
commit aa789e7575

View File

@ -287,12 +287,10 @@ impl Config {
} }
}); });
let level = match config.verbose { if config.verbose > 0 {
0 => log::LevelFilter::Error, eprintln!("Error: please use `log_filter` to set logging verbosity",);
1 => log::LevelFilter::Warn, std::process::exit(1);
2 => log::LevelFilter::Info, }
_ => log::LevelFilter::Debug,
};
let index_lookup_limit = match config.index_lookup_limit { let index_lookup_limit = match config.index_lookup_limit {
0 => None, 0 => None,
@ -340,7 +338,6 @@ impl Config {
env_logger::Builder::from_default_env() env_logger::Builder::from_default_env()
.default_format() .default_format()
.format_timestamp_millis() .format_timestamp_millis()
.filter_level(level)
.init(); .init();
config config
} }