Skip to content

Commit

Permalink
Downgrade all logs in validation to trace (paradigmxyz#6863)
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane authored and fgimenez committed Feb 29, 2024
1 parent c82f0da commit df47d32
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/net/network/src/transactions/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use reth_eth_wire::{
MAX_MESSAGE_SIZE,
};
use reth_primitives::{Signature, TxHash, TxType};
use tracing::{debug, trace};
use tracing::trace;

/// The size of a decoded signature in bytes.
pub const SIGNATURE_DECODED_SIZE_BYTES: usize = mem::size_of::<Signature>();
Expand Down Expand Up @@ -76,7 +76,7 @@ pub trait PartiallyFilterMessage {
) -> (FilterOutcome, PartiallyValidData<V>) {
// 1. checks if the announcement is empty
if msg.is_empty() {
debug!(target: "net::tx",
trace!(target: "net::tx",
msg=?msg,
"empty payload"
);
Expand Down Expand Up @@ -171,7 +171,7 @@ impl ValidateTx68 for EthMessageFilter {
let tx_type = match TxType::try_from(ty) {
Ok(ty) => ty,
Err(_) => {
debug!(target: "net::eth-wire",
trace!(target: "net::eth-wire",
ty=ty,
size=size,
hash=%hash,
Expand All @@ -192,7 +192,7 @@ impl ValidateTx68 for EthMessageFilter {
//
if let Some(strict_min_encoded_tx_length) = self.strict_min_encoded_tx_length(tx_type) {
if size < strict_min_encoded_tx_length {
debug!(target: "net::eth-wire",
trace!(target: "net::eth-wire",
ty=ty,
size=size,
hash=%hash,
Expand All @@ -206,7 +206,7 @@ impl ValidateTx68 for EthMessageFilter {
}
if let Some(reasonable_min_encoded_tx_length) = self.min_encoded_tx_length(tx_type) {
if size < reasonable_min_encoded_tx_length {
debug!(target: "net::eth-wire",
trace!(target: "net::eth-wire",
ty=ty,
size=size,
hash=%hash,
Expand All @@ -223,7 +223,7 @@ impl ValidateTx68 for EthMessageFilter {
// this network has no strict max encoded tx length for any tx type
if let Some(reasonable_max_encoded_tx_length) = self.max_encoded_tx_length(tx_type) {
if size > reasonable_max_encoded_tx_length {
debug!(target: "net::eth-wire",
trace!(target: "net::eth-wire",
ty=ty,
size=size,
hash=%hash,
Expand Down

0 comments on commit df47d32

Please sign in to comment.