From 2abf9b2e8616b240f3b99584ea9b725090b39c5f Mon Sep 17 00:00:00 2001 From: Daniel Savu <23065004+daniel-savu@users.noreply.github.com> Date: Thu, 7 Nov 2024 18:43:21 +0000 Subject: [PATCH] reduce log verbosity --- ethers-middleware/src/gas_escalator/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ethers-middleware/src/gas_escalator/mod.rs b/ethers-middleware/src/gas_escalator/mod.rs index f055aa239..02b30162e 100644 --- a/ethers-middleware/src/gas_escalator/mod.rs +++ b/ethers-middleware/src/gas_escalator/mod.rs @@ -251,9 +251,11 @@ impl EscalationTask { std::mem::take(&mut (*txs)) // Lock scope ends }; - println!("In the escalator watcher loop. Monitored txs: {:?}", txs); let len = txs.len(); + if len > 0 { + println!("In the escalator watcher loop. Monitored txs: {:?}", txs); + } // Pop all transactions and re-insert those that have not been included yet for _ in 0..len { // this must never panic as we're explicitly within bounds