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 Aug 31, 2020
1 parent 964a3a7 commit f0c4539
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 @@ -648,7 +648,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 @@ -658,7 +658,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 @@ -1797,7 +1797,7 @@ impl<B: BlockT, H: ExHashT> NetworkBehaviour for Protocol<B, H> {
}
}
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 f0c4539

Please sign in to comment.