From 82cb52a4009760c75f1dce47234da657fd5cd765 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 6 May 2019 09:32:35 +0200 Subject: [PATCH] Show more information when too many addresses are reported (#2473) * Show more information when too many addresses are reported * Update core/network-libp2p/src/behaviour.rs Co-Authored-By: tomaka --- substrate/core/network-libp2p/src/behaviour.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/substrate/core/network-libp2p/src/behaviour.rs b/substrate/core/network-libp2p/src/behaviour.rs index 7091cd0729..cad9bca7c8 100644 --- a/substrate/core/network-libp2p/src/behaviour.rs +++ b/substrate/core/network-libp2p/src/behaviour.rs @@ -261,8 +261,10 @@ impl NetworkBehaviourEventProcess for Behav warn!(target: "sub-libp2p", "Connected to a non-Substrate node: {:?}", info); } if info.listen_addrs.len() > 30 { - warn!(target: "sub-libp2p", "Node {:?} id reported more than 30 addresses", - peer_id); + warn!(target: "sub-libp2p", "Node {:?} has reported more than 30 addresses; \ + it is identified by {:?} and {:?}", peer_id, info.protocol_version, + info.agent_version + ); info.listen_addrs.truncate(30); } for addr in &info.listen_addrs {