From 950861e558bb190ef6005e607a7deb9ece7352ea Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 29 Oct 2020 11:47:58 +0100 Subject: [PATCH] Print an error if an unregistered notifications protocol is used (#7457) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Print an error if an nregistered notifications protocol is used * Print an error if an nregistered notifications protocol is used * Update client/network/src/service.rs Co-authored-by: Bastian Köcher --- substrate/client/network/src/service.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/substrate/client/network/src/service.rs b/substrate/client/network/src/service.rs index 9cb37e7700..93abbbad02 100644 --- a/substrate/client/network/src/service.rs +++ b/substrate/client/network/src/service.rs @@ -661,6 +661,11 @@ impl NetworkService { if let Some(protocol_name) = protocol_name { sink.send_sync_notification(protocol_name, message); } else { + log::error!( + target: "sub-libp2p", + "Attempted to send notification on unknown protocol: {:?}", + engine_id, + ); return; }