diff --git a/stackslib/src/net/p2p.rs b/stackslib/src/net/p2p.rs index 2dda32ba49..71ca82f8bf 100644 --- a/stackslib/src/net/p2p.rs +++ b/stackslib/src/net/p2p.rs @@ -1810,7 +1810,11 @@ impl PeerNetwork { }; match self.can_register_peer(&neighbor_key, outbound) { - Ok(_) => {} + Ok(_) => { + info!("Neighbor accepted!"; + "public key" => ?pubkey_opt, + "address" => %neighbor_key.addrbytes); + } Err(e) => { debug!( "{:?}: Could not register peer {:?}: {:?}", @@ -1905,6 +1909,11 @@ impl PeerNetwork { for (nk, pubkh) in nk_remove.into_iter() { // remove event state self.events.remove(&nk); + info!("Dropping neighbor!"; + "event id" => %event_id, + "public address" => %pubkh, + "public key" => %nk.addrbytes + ); // remove inventory state if let Some(inv_state) = self.inv_state.as_mut() {