Closed anthonator closed 5 years ago
Pushed to master, thanks. If you are using Ecto, it is given on your repo config, for everything else, you pass it to start_link
!
@anthonator have you found the issue afterwards? I am facing something similar, and the :show_sensitive_data_on_connection_error
is not really helping. See my issue on postgrex.
I have the same problem with :show_sensitive_data_on_connection_error
, I don't have idea where to change it to true
.
@alex3o0 It's here:
children = [,
{MyApp.Ecto.Repo, [show_sensitive_data_on_connection_error: true]},
]
opts = [strategy: :one_for_one, name: MyApp.Supervisor]
Supervisor.start_link(children, opts)
in your application supervisor
also, you can put it in your DB config file:
config/runtime/dev.exs or config/config.exs
database: database_api,
hostname: hostname_api,
/// here:
show_sensitive_data_on_connection_error: true
I've been getting the following error on a staging server.
I've been wanting to enable the
:show_sensitive_data_on_connection_error
config option so I can get a helpful error message but I'm not sure how.