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; }