Skip to content

Commit

Permalink
litep2p: Downgrade warns to debug
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <[email protected]>
  • Loading branch information
lexnv committed Nov 25, 2024
1 parent 65ca987 commit dd8e5ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions substrate/client/network/src/litep2p/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -747,21 +747,21 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkBackend<B, H> for Litep2pNetworkBac
}
NetworkServiceCommand::AddKnownAddress { peer, address } => {
if !address.is_external_address_valid() {
log::warn!(
log::debug!(
target: LOG_TARGET,
"ignoring invalid external address {address} for {peer:?}",
);
continue
}
let Some(address) = address.clone().ensure_peer_id(peer) else {
log::warn!(
log::debug!(
target: LOG_TARGET,
"ignoring address ({address}) with different peer ID {peer:?}",
);
continue
};
if self.litep2p.add_known_address(peer.into(), iter::once(address.clone().into())) == 0usize {
log::warn!(
log::debug!(
target: LOG_TARGET,
"couldn't add known address ({address}) for {peer:?}, unsupported transport"
);
Expand Down

0 comments on commit dd8e5ec

Please sign in to comment.