From 8fd4fc520bc7bd59fd5272b55e342edbece49a32 Mon Sep 17 00:00:00 2001 From: imabdulbasit Date: Thu, 19 Oct 2023 17:18:32 +0500 Subject: [PATCH] error log for send transaction failure when retrying --- consumer/src/solana.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/consumer/src/solana.rs b/consumer/src/solana.rs index 7e58faa..a1ecbee 100644 --- a/consumer/src/solana.rs +++ b/consumer/src/solana.rs @@ -306,6 +306,12 @@ impl Solana { ClientErrorKind::TransactionError(_) | ClientErrorKind::SigningError(_) ) }) + .notify(|err: &ClientError, dur: Duration| { + error!( + "failed to send transaction retrying error {:?} in {:?}", + err, dur + ); + }) .await .map_err(|e| { let msg = format!("failed to send transaction: {e}");