Skip to content

Commit

Permalink
Log Horde choose node decision
Browse files Browse the repository at this point in the history
  • Loading branch information
studzien committed Oct 22, 2024
1 parent 18e5254 commit d55d60f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/horde/dynamic_supervisor_impl.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d55d60f

Please sign in to comment.