From 073baa97526bc82f0e681259ff7fb6d1a3b3bcb1 Mon Sep 17 00:00:00 2001 From: binarybaron <86064887+binarybaron@users.noreply.github.com> Date: Thu, 11 Jul 2024 09:30:48 +0200 Subject: [PATCH] Update swap.rs --- swap/src/protocol/bob/swap.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/swap/src/protocol/bob/swap.rs b/swap/src/protocol/bob/swap.rs index 55174d3a..42031007 100644 --- a/swap/src/protocol/bob/swap.rs +++ b/swap/src/protocol/bob/swap.rs @@ -337,11 +337,13 @@ async fn next_state( } } } - Ok(Rejected { reason: error, .. }) => { - return Err(error) + Ok(Rejected { reason, .. }) => { + tracing::error!(?reason, "Alice rejected our request for cooperative XMR redeem"); + return Err(reason) .context("Alice rejected our request for cooperative XMR redeem"); } Err(error) => { + tracing::error!(?error, "Failed to request cooperative XMR redeem from Alice"); return Err(error) .context("Failed to request cooperative XMR redeem from Alice"); }