From f13d7eda8bb35d50c49c1a8fea900b4e9e247afb Mon Sep 17 00:00:00 2001 From: Daniel Savu <23065004+daniel-savu@users.noreply.github.com> Date: Mon, 30 Dec 2024 00:15:26 +0200 Subject: [PATCH] chore: add gas-escalator log as well --- ethers-middleware/src/gas_escalator/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ethers-middleware/src/gas_escalator/mod.rs b/ethers-middleware/src/gas_escalator/mod.rs index d2467b515..0bf23744c 100644 --- a/ethers-middleware/src/gas_escalator/mod.rs +++ b/ethers-middleware/src/gas_escalator/mod.rs @@ -184,6 +184,7 @@ where &self.inner.inner } + #[instrument(skip(self, tx, block), name = "GasOracle::send_transaction")] async fn send_transaction + Send + Sync>( &self, tx: T, @@ -210,6 +211,7 @@ where .await .map_err(GasEscalatorError::MiddlewareError)?; + tracing::debug!(tx = ?tx, tx_hash = ?pending_tx.tx_hash(), "Sent tx, adding to gas escalator watcher"); // insert the tx in the pending txs let mut lock = self.txs.lock().await; lock.push(MonitoredTransaction {