From b03b2ab57f56998430d86d398b2614427f749277 Mon Sep 17 00:00:00 2001 From: Thomas Coratger <60488569+tcoratger@users.noreply.github.com> Date: Thu, 31 Oct 2024 13:36:13 +0100 Subject: [PATCH] tracing error level WARN in `send_raw_transaction` (#1520) * error level WARN in send_raw_transaction * fix compilation --- src/client/mod.rs | 2 +- src/eth_rpc/servers/eth_rpc.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/mod.rs b/src/client/mod.rs index 19728958f..6833dd33b 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -121,7 +121,7 @@ where .pool .add_transaction(TransactionOrigin::Local, pool_transaction) .await - .inspect_err(|err| tracing::error!(?err, ?hash, ?to, from = ?signer))?; + .inspect_err(|err| tracing::warn!(?err, ?hash, ?to, from = ?signer))?; Ok(hash) } diff --git a/src/eth_rpc/servers/eth_rpc.rs b/src/eth_rpc/servers/eth_rpc.rs index 6b994e542..32c72ae16 100644 --- a/src/eth_rpc/servers/eth_rpc.rs +++ b/src/eth_rpc/servers/eth_rpc.rs @@ -18,6 +18,7 @@ use reth_primitives::{BlockId, BlockNumberOrTag}; use serde_json::Value; use starknet::providers::Provider; use std::sync::Arc; +use tracing::Level; /// The RPC module for the Ethereum protocol required by Kakarot. #[derive(Debug)] @@ -240,7 +241,7 @@ where Err(EthApiError::Unsupported("eth_sendTransaction").into()) } - #[tracing::instrument(skip_all, ret, err)] + #[tracing::instrument(skip_all, ret, err(level = Level::WARN))] async fn send_raw_transaction(&self, bytes: Bytes) -> RpcResult { tracing::info!("Serving eth_sendRawTransaction");