Skip to content

Commit

Permalink
remove! test: log cluster config
Browse files Browse the repository at this point in the history
  • Loading branch information
firestack committed Oct 8, 2024
1 parent 15998bf commit ed0102b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/skate/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ defmodule Skate.Application do

start_data_processes? = Application.get_env(:skate, :start_data_processes)

cluster_config = Application.get_env(:skate, DNSCluster)
Logger.info("DNSCluster config #{inspect(cluster_config)}")

Logger.info(
"DNSCluster resolver #{inspect(:inet_res.getbyname(~c"#{cluster_config[:query]}", :a))} #{cluster_config[:query]} #{inspect(node())} #{inspect(DNSCluster.Resolver.list_nodes())} #{inspect(DNSCluster.Resolver.lookup(cluster_config[:query], :a))}"
)

# List all child processes to be supervised
children =
[{Skate.Repo, []}] ++
Expand All @@ -38,7 +45,7 @@ defmodule Skate.Application do
end ++
[
{Phoenix.PubSub, name: Skate.PubSub},
{DNSCluster, Application.get_env(:skate, DNSCluster)},
{DNSCluster, cluster_config},
SkateWeb.Endpoint,
Skate.Migrate,
{Oban, Application.fetch_env!(:skate, Oban)},
Expand Down

0 comments on commit ed0102b

Please sign in to comment.