mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-22 21:31:10 -05:00
Utilize tracing's fields more
This commit is contained in:
parent
9119ce5cc4
commit
8f50eb2f34
@ -42,7 +42,7 @@ impl Transport for TorDialOnlyTransport {
|
||||
}
|
||||
|
||||
let dial_future = async move {
|
||||
tracing::trace!("Connecting through Tor proxy to address {}", addr);
|
||||
tracing::trace!(address = %addr, "Establishing connection through Tor proxy");
|
||||
|
||||
let stream =
|
||||
Socks5Stream::connect((Ipv4Addr::LOCALHOST, self.socks_port), address.to_string())
|
||||
|
@ -246,8 +246,8 @@ where
|
||||
Err(error) => {
|
||||
tracing::error!("Failed to construct redeem transaction: {:#}", error);
|
||||
tracing::info!(
|
||||
"Waiting for cancellation timelock ({}) to expire",
|
||||
state3.cancel_timelock
|
||||
timelock = %state3.cancel_timelock,
|
||||
"Waiting for cancellation timelock to expire",
|
||||
);
|
||||
|
||||
tx_lock_status
|
||||
|
@ -150,8 +150,8 @@ async fn next_state(
|
||||
match received_xmr {
|
||||
Ok(()) => BobState::XmrLocked(state.xmr_locked(monero_wallet_restore_blockheight)),
|
||||
Err(monero::InsufficientFunds { expected, actual }) => {
|
||||
tracing::warn!("Insufficient Monero have been locked! Expected {} but got {}", expected, actual);
|
||||
tracing::info!("Waiting for cancel timelock ({}) to expire", state.cancel_timelock);
|
||||
tracing::warn!(%expected, %actual, "Insufficient Monero have been locked!");
|
||||
tracing::info!(timelock = %state.cancel_timelock, "Waiting for cancel timelock to expire");
|
||||
|
||||
tx_lock_status.wait_until_confirmed_with(state.cancel_timelock).await?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user