Skip to content

Commit

Permalink
add warning log when notifying a manager that is not registered
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonHartley committed Feb 5, 2024
1 parent d403725 commit 3c8ea9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions coerce/src/remote/cluster/singleton/manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ impl<F: SingletonFactory> Manager<F> {
{
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"
)
}
}

Expand Down

0 comments on commit 3c8ea9f

Please sign in to comment.