Skip to content

Commit 8eac4e8

Browse files
network/libp2p-backend: Suppress warning adding already reserved node as reserved (#6703)
Fixes #6598. --------- Co-authored-by: GitHub Action <[email protected]>
1 parent 5ad8780 commit 8eac4e8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

prdoc/pr_6703.prdoc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
title: 'network/libp2p-backend: Suppress warning adding already reserved node as reserved'
2+
doc:
3+
- audience: Node Dev
4+
description: Fixes https://github.com/paritytech/polkadot-sdk/issues/6598.
5+
crates:
6+
- name: sc-network
7+
bump: patch

substrate/client/network/src/protocol_controller.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ impl ProtocolController {
464464
/// maintain connections with such peers.
465465
fn on_add_reserved_peer(&mut self, peer_id: PeerId) {
466466
if self.reserved_nodes.contains_key(&peer_id) {
467-
warn!(
467+
debug!(
468468
target: LOG_TARGET,
469469
"Trying to add an already reserved node {peer_id} as reserved on {:?}.",
470470
self.set_id,

0 commit comments

Comments
 (0)