From cf5006108c5ed2b774f09fbf02a694ec67e95ba0 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 8 Dec 2023 10:08:51 +0100 Subject: [PATCH] chore: promote trace bad txs to debug (#5714) --- crates/net/network/src/transactions.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/net/network/src/transactions.rs b/crates/net/network/src/transactions.rs index f9ffc138d..398e0ceee 100644 --- a/crates/net/network/src/transactions.rs +++ b/crates/net/network/src/transactions.rs @@ -35,7 +35,7 @@ use std::{ }; use tokio::sync::{mpsc, mpsc::error::TrySendError, oneshot, oneshot::error::RecvError}; use tokio_stream::wrappers::{ReceiverStream, UnboundedReceiverStream}; -use tracing::trace; +use tracing::{debug, trace}; /// Cache limit of transactions to keep track of for a single peer. const PEER_TRANSACTION_CACHE_LIMIT: usize = 1024 * 10; @@ -589,6 +589,7 @@ where self.import_transactions(peer_id, non_blob_txs, TransactionSource::Broadcast); if has_blob_txs { + debug!(target: "net::tx", ?peer_id, "received bad full blob transaction broadcast"); self.report_peer(peer_id, ReputationChangeKind::BadTransactions); } } @@ -856,7 +857,7 @@ where // known that this transaction is bad. (e.g. consensus // rules) if err.is_bad_transaction() && !this.network.is_syncing() { - trace!(target: "net::tx", ?err, "bad pool transaction import"); + debug!(target: "net::tx", ?err, "bad pool transaction import"); this.on_bad_import(err.hash); continue }