mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Improve logging for offchain transaction submission. (#3871)
This commit is contained in:
committed by
Bastian Köcher
parent
5d5e71028e
commit
16a5d43807
@@ -317,12 +317,12 @@ impl<A: ChainApi> AsyncApi<A> {
|
||||
},
|
||||
};
|
||||
|
||||
info!("Submitting to the pool: {:?} (isSigned: {:?})", xt, xt.is_signed());
|
||||
info!("Submitting transaction to the pool: {:?} (isSigned: {:?})", xt, xt.is_signed());
|
||||
future::Either::Right(self.transaction_pool
|
||||
.submit_one(&self.at, xt.clone())
|
||||
.map(|result| match result {
|
||||
Ok(hash) => { debug!("[{:?}] Offchain transaction added to the pool.", hash); },
|
||||
Err(e) => { debug!("Couldn't submit transaction: {:?}", e); },
|
||||
Err(e) => { warn!("Couldn't submit offchain transaction: {:?}", e); },
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user