From 3afd0a78c67f881cc63185714eb0a83f91965560 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 12 May 2022 20:10:14 +0000 Subject: [PATCH] lower log level on requests --- web3-proxy/src/connection.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web3-proxy/src/connection.rs b/web3-proxy/src/connection.rs index 845c030f..c4bbb07b 100644 --- a/web3-proxy/src/connection.rs +++ b/web3-proxy/src/connection.rs @@ -13,7 +13,7 @@ use std::sync::atomic::{self, AtomicU32, AtomicU64}; use std::time::Duration; use std::{cmp::Ordering, sync::Arc}; use tokio::time::{interval, sleep, MissedTickBehavior}; -use tracing::{debug, info, warn}; +use tracing::{info, trace, warn}; use crate::connections::Web3Connections; @@ -325,7 +325,7 @@ impl ActiveRequestHandle { { // TODO: this should probably be trace level and use a span // TODO: it would be nice to have the request id on this - debug!("Sending {}({:?}) to {}", method, params, self.0); + trace!("Sending {}({:?}) to {}", method, params, self.0); let response = match &self.0.provider { Web3Provider::Http(provider) => provider.request(method, params).await, @@ -334,7 +334,7 @@ impl ActiveRequestHandle { // TODO: i think ethers already has trace logging (and does it much more fancy) // TODO: at least instrument this with more useful information - debug!("Response from {}: {:?}", self.0, response); + trace!("Response from {}: {:?}", self.0, response); response }