mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 23:19:34 -05:00
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:
parent
904312d1e9
commit
edb8851ce2
@ -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…
Reference in New Issue
Block a user