From 71924b1a3a2301cc955a0a1e2dc243913d52d692 Mon Sep 17 00:00:00 2001 From: Bastian Gruber Date: Thu, 28 Mar 2024 15:13:15 -0300 Subject: [PATCH] fix: add debug log --- crates/topos-certificate-spammer/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/topos-certificate-spammer/src/lib.rs b/crates/topos-certificate-spammer/src/lib.rs index 7adce7014..4914a75af 100644 --- a/crates/topos-certificate-spammer/src/lib.rs +++ b/crates/topos-certificate-spammer/src/lib.rs @@ -340,7 +340,7 @@ pub async fn run( debug!("New cert number {b} in batch {batch_number} generated"); batch.push(new_cert); } - + // Dispatch certs in this batch // Dispatch certs in this batch for cert in batch { @@ -349,6 +349,10 @@ pub async fn run( // [rand::random::() % target_nodes.len()]; for connection in &target_node_connections[&cert.source_subnet_id] { + debug!( + "Sending certificate {cert:?} to target node {}", + connection.address + ); dispatch(cert.clone(), connection) .instrument(Span::current()) .with_current_context()