From 20851af51b7b8b227f935220a9b4ee9856150b43 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 28 Feb 2023 11:09:49 -0800 Subject: [PATCH] log seconds instead of milliseconds --- web3_proxy/src/rpcs/one.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web3_proxy/src/rpcs/one.rs b/web3_proxy/src/rpcs/one.rs index 63b82b4b..1b814eb1 100644 --- a/web3_proxy/src/rpcs/one.rs +++ b/web3_proxy/src/rpcs/one.rs @@ -577,9 +577,9 @@ impl Web3Rpc { } pub async fn disconnect(&self) -> anyhow::Result<()> { - let age = self.created_at.unwrap().elapsed().as_millis(); + let age = self.created_at.unwrap().elapsed().as_secs(); - info!("disconnecting {} ({}ms old)", self, age); + info!("disconnecting {} ({}s old)", self, age); self.reconnect.store(false, atomic::Ordering::Release); @@ -587,11 +587,11 @@ impl Web3Rpc { warn!("failed sending disconnect watch: {:?}", err); }; - trace!("disconnecting (locking) {} ({}ms old)", self, age); + trace!("disconnecting (locking) {} ({}s old)", self, age); let mut provider = self.provider.write().await; - trace!("disconnecting (clearing provider) {} ({}ms old)", self, age); + trace!("disconnecting (clearing provider) {} ({}s old)", self, age); *provider = None; @@ -616,7 +616,7 @@ impl Web3Rpc { let age = self.created_at.unwrap().elapsed().as_millis(); - warn!("clearing head block on {} ({}ms old)!", self, age); + debug!("clearing head block on {} ({}ms old)!", self, age); *head_block = None; }