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.
pull/320/head
Thomas Eizinger 3 years ago
parent 904312d1e9
commit edb8851ce2
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

@ -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();

Loading…
Cancel
Save