Skip to content

Commit

Permalink
tracing error level WARN in send_raw_transaction (#1520)
Browse files Browse the repository at this point in the history
* error level WARN in send_raw_transaction

* fix compilation
  • Loading branch information
tcoratger authored Oct 31, 2024
1 parent 63cd759 commit b03b2ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
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

0 comments on commit b03b2ab

Please sign in to comment.