Skip to content

Commit

Permalink
feat(asb): Change log level of rendezvous register logs to TRACE (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
binarybaron authored Nov 19, 2024
1 parent 5ceda8f commit 81f4118
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions swap/src/asb/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down
4 changes: 2 additions & 2 deletions swap/src/bitcoin/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ fn print_status_change(txid: Txid, old: Option<ScriptStatus>, 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");
}
_ => {}
}
Expand Down Expand Up @@ -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"
);
Expand Down

0 comments on commit 81f4118

Please sign in to comment.