From e01f8505fd68328c59b764604d28fbadfffbebe9 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 7 Nov 2022 22:25:52 +0000 Subject: [PATCH] log params too i'm not sure we want this, but maybe --- web3_proxy/src/rpcs/request.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web3_proxy/src/rpcs/request.rs b/web3_proxy/src/rpcs/request.rs index 5675e39e..0212bf79 100644 --- a/web3_proxy/src/rpcs/request.rs +++ b/web3_proxy/src/rpcs/request.rs @@ -279,14 +279,14 @@ impl OpenRequestHandle { RequestErrorHandler::DebugLevel => { // TODO: think about this revert check more. sometimes we might want reverts logged so this needs a flag if !is_revert { - debug!(?err, %method, rpc=%self.conn, "bad response!"); + debug!(?err, %method, ?params, rpc=%self.conn, "bad response!"); } } RequestErrorHandler::ErrorLevel => { - error!(?err, %method, rpc=%self.conn, "bad response!"); + error!(?err, %method, ?params, rpc=%self.conn, "bad response!"); } RequestErrorHandler::WarnLevel => { - warn!(?err, %method, rpc=%self.conn, "bad response!"); + warn!(?err, %method, ?params, rpc=%self.conn, "bad response!"); } RequestErrorHandler::SaveReverts => { // TODO: do not unwrap! (doesn't matter much since we check method as a string above)