From 1cb0c4fc83440e9f44d435aba904a50adfa62f0d Mon Sep 17 00:00:00 2001 From: Daniel Karzel Date: Wed, 23 Dec 2020 12:36:33 +1100 Subject: [PATCH] Change warning to error when Bob's refund after t2 failed --- swap/src/bob/swap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swap/src/bob/swap.rs b/swap/src/bob/swap.rs index eed73f5c..0e48f405 100644 --- a/swap/src/bob/swap.rs +++ b/swap/src/bob/swap.rs @@ -10,7 +10,7 @@ use async_recursion::async_recursion; use rand::{CryptoRng, RngCore}; use std::{convert::TryFrom, fmt, sync::Arc}; use tokio::select; -use tracing::{info, warn}; +use tracing::{error, info}; use uuid::Uuid; use xmr_btc::{ bob::{self, State2}, @@ -407,7 +407,7 @@ where match refund_result { Ok(()) => BobState::BtcRefunded(state), Err(err) => { - warn!("Bob tried to refund after T2 has passed, but sending the refund tx errored with {}", err); + error!("Bob tried to refund after T2 has passed, but sending the refund tx errored with {}", err); BobState::Punished } }