diff --git a/lib/horde/dynamic_supervisor_impl.ex b/lib/horde/dynamic_supervisor_impl.ex index 0526b96..51a3701 100644 --- a/lib/horde/dynamic_supervisor_impl.ex +++ b/lib/horde/dynamic_supervisor_impl.ex @@ -788,10 +788,10 @@ defmodule Horde.DynamicSupervisorImpl do end defp choose_node(child_spec, state) do - state.distribution_strategy.choose_node( - child_spec, - Map.values(members(state)) - ) + members = Map.values(members(state)) + result = state.distribution_strategy.choose_node(child_spec, members) + Logger.error("Choose node", child_spec: child_spec, members: members, result: result) + result end defp members(state) do