Utilize tracing's fields more

This commit is contained in:
Thomas Eizinger 2021-07-07 14:31:10 +10:00 committed by Daniel Karzel
parent 9119ce5cc4
commit 8f50eb2f34
No known key found for this signature in database
GPG key ID: 30C3FC2E438ADB6E
3 changed files with 5 additions and 5 deletions

View file

@ -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?;