From 7d324d966a28d1c67ae881dac3004a60011fc1fe Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 25 Feb 2021 11:51:43 +1100 Subject: [PATCH] Remove `syncing` wallet log BDK already has a log line for the sync that we could enable if we wanted such a log. Additionally, _we_ are not actually syncing the wallet, bdk is so our log line was lying. It should have said "calling bdk to sync wallet". --- swap/src/bitcoin/wallet.rs | 1 - swap/src/trace.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/swap/src/bitcoin/wallet.rs b/swap/src/bitcoin/wallet.rs index d157109f..6f054a7c 100644 --- a/swap/src/bitcoin/wallet.rs +++ b/swap/src/bitcoin/wallet.rs @@ -111,7 +111,6 @@ impl Wallet { } pub async fn sync_wallet(&self) -> Result<()> { - tracing::debug!("syncing wallet"); self.inner.lock().await.sync(noop_progress(), None)?; Ok(()) } diff --git a/swap/src/trace.rs b/swap/src/trace.rs index 60be6213..6ae1d6ef 100644 --- a/swap/src/trace.rs +++ b/swap/src/trace.rs @@ -16,7 +16,7 @@ pub fn init_tracing(level: LevelFilter) -> Result<()> { let subscriber = FmtSubscriber::builder() .with_env_filter(format!( "swap={},monero_harness={},bitcoin_harness={},http=warn,warp=warn", - level, level, level, + level, level, level )) .with_writer(std::io::stderr) .with_ansi(is_terminal)