Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit dbbaef1

Browse files
tomakabkchr
authored andcommitted
Silence the error about non-registered protocols (#6987)
* Silence the error about non-registered protocols * Silence the other two locations as well
1 parent b622015 commit dbbaef1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/network/src/protocol.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ impl<B: BlockT, H: ExHashT> Protocol<B, H> {
658658
messages: vec![(msg.engine_id, From::from(msg.data))],
659659
}
660660
} else {
661-
warn!(target: "sync", "Received message on non-registered protocol: {:?}", msg.engine_id);
661+
debug!(target: "sync", "Received message on non-registered protocol: {:?}", msg.engine_id);
662662
CustomMessageOutcome::None
663663
},
664664
GenericMessage::ConsensusBatch(messages) => {
@@ -668,7 +668,7 @@ impl<B: BlockT, H: ExHashT> Protocol<B, H> {
668668
if self.protocol_name_by_engine.contains_key(&msg.engine_id) {
669669
Some((msg.engine_id, From::from(msg.data)))
670670
} else {
671-
warn!(target: "sync", "Received message on non-registered protocol: {:?}", msg.engine_id);
671+
debug!(target: "sync", "Received message on non-registered protocol: {:?}", msg.engine_id);
672672
None
673673
}
674674
})
@@ -1828,7 +1828,7 @@ impl<B: BlockT, H: ExHashT> NetworkBehaviour for Protocol<B, H> {
18281828
CustomMessageOutcome::None
18291829
}
18301830
None => {
1831-
error!(target: "sub-libp2p", "Received notification from unknown protocol {:?}", protocol_name);
1831+
debug!(target: "sub-libp2p", "Received notification from unknown protocol {:?}", protocol_name);
18321832
CustomMessageOutcome::None
18331833
}
18341834
}

0 commit comments

Comments
 (0)