mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 19:21:13 +00:00
Silence the error about non-registered protocols (#6987)
* Silence the error about non-registered protocols * Silence the other two locations as well
This commit is contained in:
@@ -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) => {
|
||||
@@ -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
|
||||
}
|
||||
})
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user