Add logging to submit_transaction and unstable driver, and ensure unpin evs complete

This commit is contained in:
James Wilson
2024-01-17 17:07:40 +00:00
parent 553343548e
commit 6b83016a6d
6 changed files with 69 additions and 23 deletions
@@ -219,7 +219,10 @@ async fn build_unstable_client<T: Config>(
use futures::StreamExt;
while let Some(val) = driver.next().await {
if let Err(e) = val {
eprintln!("Error driving unstable backend: {e}");
// This is a test; bail if something does wrong and try to
// ensure that the message makes it to some logs.
eprintln!("Error driving unstable backend in tests (will panic): {e}");
panic!("Error driving unstable backend in tests: {e}");
break;
}
}