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

Commit

Permalink
Silence the error about non-registered protocols (#6987)
Browse files Browse the repository at this point in the history
* Silence the error about non-registered protocols

* Silence the other two locations as well
  • Loading branch information
tomaka authored and bkchr committed Sep 18, 2020
1 parent b622015 commit dbbaef1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/network/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ impl<B: BlockT, H: ExHashT> Protocol<B, H> {
messages: vec![(msg.engine_id, From::from(msg.data))],
}
} else {
warn!(target: "sync", "Received message on non-registered protocol: {:?}", msg.engine_id);
debug!(target: "sync", "Received message on non-registered protocol: {:?}", msg.engine_id);
CustomMessageOutcome::None
},
GenericMessage::ConsensusBatch(messages) => {
Expand All @@ -668,7 +668,7 @@ impl<B: BlockT, H: ExHashT> Protocol<B, H> {
if self.protocol_name_by_engine.contains_key(&msg.engine_id) {
Some((msg.engine_id, From::from(msg.data)))
} else {
warn!(target: "sync", "Received message on non-registered protocol: {:?}", msg.engine_id);
debug!(target: "sync", "Received message on non-registered protocol: {:?}", msg.engine_id);
None
}
})
Expand Down Expand Up @@ -1828,7 +1828,7 @@ impl<B: BlockT, H: ExHashT> NetworkBehaviour for Protocol<B, H> {
CustomMessageOutcome::None
}
None => {
error!(target: "sub-libp2p", "Received notification from unknown protocol {:?}", protocol_name);
debug!(target: "sub-libp2p", "Received notification from unknown protocol {:?}", protocol_name);
CustomMessageOutcome::None
}
}
Expand Down

0 comments on commit dbbaef1

Please sign in to comment.