Fix env filter for asb

1. The asb didn't log any if the statements within main.rs
2. We were initializing unnecessary filters that don't make any sense
for the asb. warp and http are not used and the harness-es are for
test only.
This commit is contained in:
Thomas Eizinger 2021-03-17 11:21:05 +11:00
parent 904312d1e9
commit edb8851ce2
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -14,10 +14,7 @@ pub fn init_tracing(level: LevelFilter) -> Result<()> {
let is_terminal = atty::is(atty::Stream::Stderr);
let subscriber = FmtSubscriber::builder()
.with_env_filter(format!(
"swap={},monero_harness={},bitcoin_harness={},http=warn,warp=warn",
level, level, level
))
.with_env_filter(format!("asb={},swap={}", level, level,))
.with_writer(std::io::stderr)
.with_ansi(is_terminal)
.finish();