Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

tracing error level WARN in send_raw_transaction #1520

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,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)
}
Expand Down
3 changes: 2 additions & 1 deletion src/eth_rpc/servers/eth_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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<B256> {
tracing::info!("Serving eth_sendRawTransaction");

Expand Down
Loading