From 5f8b7f26246e9cb5828ee3c5d1cdb1366ce5186d Mon Sep 17 00:00:00 2001 From: Daniel Karzel Date: Tue, 22 Dec 2020 14:11:55 +1100 Subject: [PATCH] Fix tracing subscribe filter for xmr-btc` --- swap/src/trace.rs | 2 +- swap/tests/testutils/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/swap/src/trace.rs b/swap/src/trace.rs index a8a46eba..e2ec8c22 100644 --- a/swap/src/trace.rs +++ b/swap/src/trace.rs @@ -15,7 +15,7 @@ pub fn init_tracing(level: log::LevelFilter) -> anyhow::Result<()> { let is_terminal = atty::is(atty::Stream::Stderr); let subscriber = FmtSubscriber::builder() .with_env_filter(format!( - "swap={},xmr-btc={},http=warn,warp=warn", + "swap={},xmr_btc={},http=warn,warp=warn", level, level )) .with_writer(std::io::stderr) diff --git a/swap/tests/testutils/mod.rs b/swap/tests/testutils/mod.rs index 186a28e6..1a4fa848 100644 --- a/swap/tests/testutils/mod.rs +++ b/swap/tests/testutils/mod.rs @@ -274,7 +274,7 @@ pub fn init_tracing() -> DefaultGuard { use tracing_subscriber::util::SubscriberInitExt as _; tracing_subscriber::fmt() .with_env_filter(format!( - "{},swap={},xmr-btc={},monero_harness={},bitcoin_harness={}", + "{},swap={},xmr_btc={},monero_harness={},bitcoin_harness={}", global_filter, swap_filter, xmr_btc_filter,