Change warning to error when Bob's refund after t2 failed

This commit is contained in:
Daniel Karzel 2020-12-23 12:36:33 +11:00 committed by Daniel Karzel
parent 7a740e876e
commit 1cb0c4fc83

View File

@ -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
}
}