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:
Pierre Krieger
2020-08-31 17:41:17 +02:00
committed by GitHub
parent 9b4315a62d
commit 860362869b
+3 -3
View File
@@ -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
}
}