Add context to log messages

This commit is contained in:
rishflab 2020-10-09 08:49:17 +11:00
parent 48e5eb8d6c
commit 9f046944a5

View File

@ -388,12 +388,12 @@ impl State3 {
where
W: bitcoin::WatchForRawTransaction,
{
tracing::info!("{}", self.tx_lock.txid());
tracing::info!("watching for lock btc with txid: {}", self.tx_lock.txid());
let tx = bitcoin_wallet
.watch_for_raw_transaction(self.tx_lock.txid())
.await?;
tracing::info!("{}", tx.txid());
tracing::info!("tx lock seen with txid: {}", tx.txid());
Ok(State4 {
a: self.a,