From 00ac218dbfca3aaa59887e2ae8887810cf981729 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Wed, 28 Feb 2024 23:42:06 +0100 Subject: [PATCH] Downgrade all logs in validation to trace (#6863) --- crates/net/network/src/transactions/validation.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/net/network/src/transactions/validation.rs b/crates/net/network/src/transactions/validation.rs index 1495e40550fb..80a40f455f9a 100644 --- a/crates/net/network/src/transactions/validation.rs +++ b/crates/net/network/src/transactions/validation.rs @@ -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::(); @@ -76,7 +76,7 @@ pub trait PartiallyFilterMessage { ) -> (FilterOutcome, PartiallyValidData) { // 1. checks if the announcement is empty if msg.is_empty() { - debug!(target: "net::tx", + trace!(target: "net::tx", msg=?msg, "empty payload" ); @@ -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, @@ -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, @@ -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, @@ -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,