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