Skip to content

Commit 31653ac

Browse files
authored
chore: add gas-escalator log as well (#26)
instruments the `send_transaction` method of the gas escalator as well, to match the rest of the middleware
1 parent d28add2 commit 31653ac

File tree

1 file changed

+2
-0
lines changed
  • ethers-middleware/src/gas_escalator

1 file changed

+2
-0
lines changed

ethers-middleware/src/gas_escalator/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ where
184184
&self.inner.inner
185185
}
186186

187+
#[instrument(skip(self, tx, block), name = "GasOracle::send_transaction")]
187188
async fn send_transaction<T: Into<TypedTransaction> + Send + Sync>(
188189
&self,
189190
tx: T,
@@ -210,6 +211,7 @@ where
210211
.await
211212
.map_err(GasEscalatorError::MiddlewareError)?;
212213

214+
tracing::debug!(tx = ?tx, tx_hash = ?pending_tx.tx_hash(), "Sent tx, adding to gas escalator watcher");
213215
// insert the tx in the pending txs
214216
let mut lock = self.txs.lock().await;
215217
lock.push(MonitoredTransaction {

0 commit comments

Comments
 (0)