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

Disable setting TRACE verbosity by '-vvvv'

Should fix https://github.com/romanz/electrs/issues/355#issuecomment-926903119.

It still can be set using:
```
RUST_LOG=electrs=TRACE target/release/electrs <args>
```

See https://docs.rs/env_logger for more usage examples.
This commit is contained in:
Roman Zeyde 2021-09-26 12:21:04 +03:00
parent a10c3244da
commit 0e2766c264
2 changed files with 2 additions and 2 deletions

View File

@ -31,6 +31,7 @@ Full list of changes:
* Increase default `index_lookup_limit` to 200 * Increase default `index_lookup_limit` to 200
* Implement 'blockchain.scripthash.listunspent' RPC (#475) * Implement 'blockchain.scripthash.listunspent' RPC (#475)
* Update RocksDB to 6.11.4 (#473) * Update RocksDB to 6.11.4 (#473)
* Allow logging configuration via `RUST_LOG` environment variable (using `env_logger`)
# 0.8.12 (14 Sep 2021) # 0.8.12 (14 Sep 2021)

View File

@ -276,8 +276,7 @@ impl Config {
0 => log::LevelFilter::Error, 0 => log::LevelFilter::Error,
1 => log::LevelFilter::Warn, 1 => log::LevelFilter::Warn,
2 => log::LevelFilter::Info, 2 => log::LevelFilter::Info,
3 => log::LevelFilter::Debug, _ => log::LevelFilter::Debug,
_ => log::LevelFilter::Trace,
}; };
let index_lookup_limit = match config.index_lookup_limit { let index_lookup_limit = match config.index_lookup_limit {