diff --git a/mempool/src/shared_mempool/network.rs b/mempool/src/shared_mempool/network.rs index 5869bcff63bfe..32f9a66f35a86 100644 --- a/mempool/src/shared_mempool/network.rs +++ b/mempool/src/shared_mempool/network.rs @@ -481,7 +481,7 @@ impl> MempoolNetworkInterf // Log all the metrics let latency = start_time.elapsed(); - debug!( + trace!( LogSchema::event_log(LogEntry::BroadcastTransaction, LogEvent::Success) .peer(&peer) .batch_id(&batch_id) diff --git a/mempool/src/shared_mempool/tasks.rs b/mempool/src/shared_mempool/tasks.rs index 83961d5f32955..d6069650ff377 100644 --- a/mempool/src/shared_mempool/tasks.rs +++ b/mempool/src/shared_mempool/tasks.rs @@ -69,8 +69,17 @@ pub(crate) async fn execute_broadcast( ) .peer(&peer) .error(&error)), + BroadcastError::NoTransactions(_) | BroadcastError::PeerNotPrioritized(_, _) => { + sample!( + SampleRate::Duration(Duration::from_secs(60)), + trace!("{:?}", err) + ); + }, _ => { - debug!("{:?}", err) + sample!( + SampleRate::Duration(Duration::from_secs(60)), + debug!("{:?}", err) + ); }, } }