Skip to content

Commit

Permalink
peer_info: Downgrade warn to debug logs
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <[email protected]>
  • Loading branch information
lexnv committed Nov 20, 2024
1 parent 9e7c867 commit 109bb1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions substrate/client/network/src/peer_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl PeerInfoBehaviour {
/// - the address is for the local peer ID
fn verify_external_address(&mut self, address: &Multiaddr) -> bool {
if address.is_empty() {
log::warn!(
log::debug!(
target: "sub-libp2p",
"🔍 Discovered empty address",
);
Expand All @@ -211,7 +211,7 @@ impl PeerInfoBehaviour {
Protocol::Ip4(_),
)
) {
log::warn!(
log::debug!(
target: "sub-libp2p",
"🔍 Discovered external address does not contain a valid IP address: {address}",
);
Expand All @@ -221,7 +221,7 @@ impl PeerInfoBehaviour {
if let Some(Protocol::P2p(peer_id)) = address.iter().last() {
// Invalid address if the reported peer ID is not the local peer ID.
if peer_id != self.local_peer_id {
log::warn!(
log::debug!(
target: "sub-libp2p",
"🔍 Discovered external address that is not us: {address}",
);
Expand Down

0 comments on commit 109bb1c

Please sign in to comment.