From af4ca0f450f333cbe09c4d9386f41e01064708ef Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sun, 9 Jul 2023 22:49:29 -0700 Subject: [PATCH] distinguish some errors --- web3_proxy/src/errors.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web3_proxy/src/errors.rs b/web3_proxy/src/errors.rs index 453f5012..49562e1f 100644 --- a/web3_proxy/src/errors.rs +++ b/web3_proxy/src/errors.rs @@ -230,7 +230,7 @@ impl Web3ProxyError { } Self::BadResponse(err) => { // TODO: think about this one more. ankr gives us this because ethers fails to parse responses without an id - debug!(?err, "BAD_RESPONSE"); + debug!(?err, "BAD_RESPONSE: {}", err); ( StatusCode::INTERNAL_SERVER_ERROR, JsonRpcErrorData { @@ -252,7 +252,7 @@ impl Web3ProxyError { ) } Self::Contract(err) => { - warn!(?err, "Contract Error"); + warn!(?err, "Contract Error: {}", err); ( StatusCode::INTERNAL_SERVER_ERROR, JsonRpcErrorData { @@ -263,7 +263,7 @@ impl Web3ProxyError { ) } Self::Database(err) => { - error!(?err, "database err"); + error!(?err, "database err: {}", err); ( StatusCode::INTERNAL_SERVER_ERROR, JsonRpcErrorData { @@ -274,7 +274,7 @@ impl Web3ProxyError { ) } Self::Decimal(err) => { - debug!(?err, "Decimal Error"); + debug!(?err, "Decimal Error: {}", err); ( StatusCode::BAD_REQUEST, JsonRpcErrorData {