From 81f41183ae9f70170b7c6bcc53cfe97bab082ff5 Mon Sep 17 00:00:00 2001 From: binarybaron <86064887+binarybaron@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:57:49 +0100 Subject: [PATCH] feat(asb): Change log level of rendezvous register logs to TRACE (#188) --- swap/src/asb/event_loop.rs | 4 ++-- swap/src/bitcoin/wallet.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/swap/src/asb/event_loop.rs b/swap/src/asb/event_loop.rs index 9a103e37d..e40bf850d 100644 --- a/swap/src/asb/event_loop.rs +++ b/swap/src/asb/event_loop.rs @@ -382,10 +382,10 @@ where tracing::info!(swap_id = %swap_id, peer = %peer, "Fullfilled cooperative XMR redeem request"); } SwarmEvent::Behaviour(OutEvent::Rendezvous(libp2p::rendezvous::client::Event::Registered { rendezvous_node, ttl, namespace })) => { - tracing::info!("Successfully registered with rendezvous node: {} with namespace: {} and TTL: {:?}", rendezvous_node, namespace, ttl); + tracing::trace!("Successfully registered with rendezvous node: {} with namespace: {} and TTL: {:?}", rendezvous_node, namespace, ttl); } SwarmEvent::Behaviour(OutEvent::Rendezvous(libp2p::rendezvous::client::Event::RegisterFailed { rendezvous_node, namespace, error })) => { - tracing::error!("Registration with rendezvous node {} failed for namespace {}: {:?}", rendezvous_node, namespace, error); + tracing::trace!("Registration with rendezvous node {} failed for namespace {}: {:?}", rendezvous_node, namespace, error); } SwarmEvent::Behaviour(OutEvent::OutboundRequestResponseFailure {peer, error, request_id, protocol}) => { tracing::error!( diff --git a/swap/src/bitcoin/wallet.rs b/swap/src/bitcoin/wallet.rs index d118f8250..8546dbe92 100644 --- a/swap/src/bitcoin/wallet.rs +++ b/swap/src/bitcoin/wallet.rs @@ -223,7 +223,7 @@ fn print_status_change(txid: Txid, old: Option, new: ScriptStatus) tracing::debug!(%txid, status = %new_status, "Found relevant Bitcoin transaction"); } (Some(old_status), new_status) if old_status != new_status => { - tracing::debug!(%txid, %new_status, %old_status, "Bitcoin transaction status changed"); + tracing::trace!(%txid, %new_status, %old_status, "Bitcoin transaction status changed"); } _ => {} } @@ -836,7 +836,7 @@ impl Client { let latest_block_height = BlockHeight::try_from(latest_block)?; if latest_block_height > self.latest_block_height { - tracing::debug!( + tracing::trace!( block_height = u32::from(latest_block_height), "Got notification for new block" );