From e53cfe4fdb542f57756249887bb9e8c1881dedda Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 29 Oct 2020 09:52:11 +0100 Subject: [PATCH 1/3] Print an error if an nregistered notifications protocol is used --- client/network/src/service.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/network/src/service.rs b/client/network/src/service.rs index 9cb37e7700f3a..d2e4ade941e8b 100644 --- a/client/network/src/service.rs +++ b/client/network/src/service.rs @@ -661,6 +661,10 @@ 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; } From 20370d7bf842706a588b5f5d0b07b379ca98bb21 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 29 Oct 2020 09:52:11 +0100 Subject: [PATCH 2/3] Print an error if an nregistered notifications protocol is used --- client/network/src/service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/network/src/service.rs b/client/network/src/service.rs index d2e4ade941e8b..9de91379a6a7c 100644 --- a/client/network/src/service.rs +++ b/client/network/src/service.rs @@ -663,7 +663,7 @@ impl NetworkService { } else { log::error!( target: "sub-libp2p", - "Attempted to send notification on unknown protocol: {}", engine_id + "Attempted to send notification on unknown protocol: {:?}", engine_id ); return; } From 320e5e712d8a3ffd322de1bae62e4cfee0363d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Thu, 29 Oct 2020 11:19:56 +0100 Subject: [PATCH 3/3] Update client/network/src/service.rs --- client/network/src/service.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/network/src/service.rs b/client/network/src/service.rs index 9de91379a6a7c..93abbbad02495 100644 --- a/client/network/src/service.rs +++ b/client/network/src/service.rs @@ -663,7 +663,8 @@ impl NetworkService { } else { log::error!( target: "sub-libp2p", - "Attempted to send notification on unknown protocol: {:?}", engine_id + "Attempted to send notification on unknown protocol: {:?}", + engine_id, ); return; }