From ffef36dafe5bdbeb4311bae78c89a3dc1d293a3a Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 6 Jul 2023 04:36:02 -0700 Subject: [PATCH] more tracing cleanup --- web3_proxy/src/errors.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web3_proxy/src/errors.rs b/web3_proxy/src/errors.rs index 302eb4b0..453f5012 100644 --- a/web3_proxy/src/errors.rs +++ b/web3_proxy/src/errors.rs @@ -252,7 +252,7 @@ impl Web3ProxyError { ) } Self::Contract(err) => { - warn!("Contract Error: {:#?}", err); + warn!(?err, "Contract Error"); ( StatusCode::INTERNAL_SERVER_ERROR, JsonRpcErrorData { @@ -263,7 +263,7 @@ impl Web3ProxyError { ) } Self::Database(err) => { - error!("database err={:#?}", err); + error!(?err, "database err"); ( StatusCode::INTERNAL_SERVER_ERROR, JsonRpcErrorData { @@ -274,7 +274,7 @@ impl Web3ProxyError { ) } Self::Decimal(err) => { - debug!("Decimal Error: {:#?}", err); + debug!(?err, "Decimal Error"); ( StatusCode::BAD_REQUEST, JsonRpcErrorData {