From 76e51e3d1120835a977e7f3c304b2d6643749d28 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 19 Jan 2023 02:21:39 -0800 Subject: [PATCH] better log level --- web3_proxy/src/rpcs/connection.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/rpcs/connection.rs b/web3_proxy/src/rpcs/connection.rs index 7b650316..070c88b8 100644 --- a/web3_proxy/src/rpcs/connection.rs +++ b/web3_proxy/src/rpcs/connection.rs @@ -653,8 +653,12 @@ impl Web3Connection { // if this block is too old, return an error so we reconnect let current_lag = x.lag(); if current_lag > allowed_lag { - let level = if warned == 0 && !conn.backup { - log::Level::Warn + let level = if warned == 0 { + if conn.backup { + log::Level::Info + } else { + log::Level::Warn + } } else if warned % 100 == 0 { log::Level::Debug } else {