From 3c8ea9fd1a34f7923a442c078bcc26185fe2a94b Mon Sep 17 00:00:00 2001 From: Leon Hartley Date: Mon, 5 Feb 2024 13:01:48 +0000 Subject: [PATCH] add warning log when notifying a manager that is not registered --- coerce/src/remote/cluster/singleton/manager/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/coerce/src/remote/cluster/singleton/manager/mod.rs b/coerce/src/remote/cluster/singleton/manager/mod.rs index 87f5b89..f484c34 100644 --- a/coerce/src/remote/cluster/singleton/manager/mod.rs +++ b/coerce/src/remote/cluster/singleton/manager/mod.rs @@ -148,6 +148,12 @@ impl Manager { { if let Some(manager) = self.managers.get(&node_id) { self.notify(message, &manager, ctx).await; + } else { + warn!( + node_id = node_id, + message = M::type_name(), + "attempted to notify manager that doesn't exist" + ) } }