Improve logging in workload utilities and expectations

This commit is contained in:
andrussal 2025-12-11 08:55:12 +01:00
parent ae6cf1ef0f
commit 72c2d2eba2
2 changed files with 11 additions and 2 deletions

View File

@ -122,8 +122,13 @@ impl Expectation for TxInclusionExpectation {
}
}
}
Err(broadcast::error::RecvError::Lagged(_)) => {}
Err(broadcast::error::RecvError::Closed) => break,
Err(broadcast::error::RecvError::Lagged(skipped)) => {
tracing::debug!(skipped, "tx inclusion capture lagged");
}
Err(broadcast::error::RecvError::Closed) => {
tracing::debug!("tx inclusion capture feed closed");
break;
}
}
}
tracing::debug!("tx inclusion capture task exiting");

View File

@ -16,6 +16,10 @@ pub fn find_channel_op<F>(block: &Block<SignedMantleTx>, matcher: &mut F) -> Opt
where
F: FnMut(&Op) -> Option<MsgId>,
{
debug!(
txs = block.transactions().len(),
"scanning block for channel op"
);
for tx in block.transactions() {
for op in &tx.mantle_tx().ops {
if let Some(msg_id) = matcher(op) {