mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04: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 is_terminal = atty::is(atty::Stream::Stderr);
|
||||||
let subscriber = FmtSubscriber::builder()
|
let subscriber = FmtSubscriber::builder()
|
||||||
.with_env_filter(format!(
|
.with_env_filter(format!("asb={},swap={}", level, level,))
|
||||||
"swap={},monero_harness={},bitcoin_harness={},http=warn,warp=warn",
|
|
||||||
level, level, level
|
|
||||||
))
|
|
||||||
.with_writer(std::io::stderr)
|
.with_writer(std::io::stderr)
|
||||||
.with_ansi(is_terminal)
|
.with_ansi(is_terminal)
|
||||||
.finish();
|
.finish();
|
||||||
|
Loading…
Reference in New Issue
Block a user