From 611d09e5a2dd35e59adc146f2c6981a13190d7da Mon Sep 17 00:00:00 2001 From: binarybaron <86064887+binarybaron@users.noreply.github.com> Date: Sun, 9 Jun 2024 12:22:47 +0200 Subject: [PATCH] Update wallet.rs --- swap/src/monero/wallet.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/swap/src/monero/wallet.rs b/swap/src/monero/wallet.rs index c81deeb2..99fa206a 100644 --- a/swap/src/monero/wallet.rs +++ b/swap/src/monero/wallet.rs @@ -301,11 +301,10 @@ impl Wallet { } }; + tracing::warn!(attempt=i, %height, %attempts_left, name = %self.name, %error, "Failed to sync Monero wallet"); + if attempts_left == 0 { - tracing::error!(name = %self.name, %height, %error, "Failed to sync Monero wallet"); return Err(error.into()); - } else { - tracing::warn!(attempt=i, %height, %attempts_left, name = %self.name, %error, "Failed to sync Monero wallet"); } } }