Add logging to PubSub configuration for debugging
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c85b907ab7
commit
cbbe1772bc
1 changed files with 10 additions and 0 deletions
|
|
@ -168,6 +168,10 @@ defmodule Aprsme.Application do
|
|||
redis_url = System.get_env("REDIS_URL")
|
||||
|
||||
if cluster_enabled and redis_url do
|
||||
require Logger
|
||||
|
||||
Logger.info("Starting Redis PubSub adapter with URL: #{redis_url}")
|
||||
|
||||
{Phoenix.PubSub,
|
||||
name: Aprsme.PubSub,
|
||||
adapter: Phoenix.PubSub.Redis,
|
||||
|
|
@ -175,6 +179,12 @@ defmodule Aprsme.Application do
|
|||
node_name: node(),
|
||||
redis_options: [url: redis_url]}
|
||||
else
|
||||
require Logger
|
||||
|
||||
Logger.info(
|
||||
"Starting default PubSub adapter (cluster_enabled: #{cluster_enabled}, redis_url: #{inspect(redis_url)})"
|
||||
)
|
||||
|
||||
{Phoenix.PubSub, name: Aprsme.PubSub}
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue