diff --git a/substrate/core/network-libp2p/src/custom_proto/behaviour.rs b/substrate/core/network-libp2p/src/custom_proto/behaviour.rs index eb60bb9ba4..91dd6b29bc 100644 --- a/substrate/core/network-libp2p/src/custom_proto/behaviour.rs +++ b/substrate/core/network-libp2p/src/custom_proto/behaviour.rs @@ -190,7 +190,7 @@ impl CustomProto { /// Disconnects the given peer if we are connected to it. pub fn disconnect_peer(&mut self, peer_id: &PeerId) { - debug!(target: "sub-libp2p", "Disconnecting {:?} by request from the external API", peer_id); + debug!(target: "sub-libp2p", "External API => Disconnect {:?}", peer_id); self.disconnect_peer_inner(peer_id, None); } @@ -302,6 +302,7 @@ impl CustomProto { return; } + trace!(target: "sub-libp2p", "External API => Packet for {:?}", target); trace!(target: "sub-libp2p", "Handler({:?}) <= Packet", target); self.events.push(NetworkBehaviourAction::SendEvent { peer_id: target.clone(),