Add Ecto.DevLogger in dev mode

See https://github.com/fuelen/ecto_dev_logger

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-11-06 16:56:04 +01:00
parent 84860ca2bf
commit e7e4ed2ac9
4 changed files with 10 additions and 2 deletions

View File

@@ -77,6 +77,10 @@ defmodule Mobilizon do
ErrorReporting.configure()
if @env == :dev do
Ecto.DevLogger.install(Storage.Repo)
end
# Only attach the telemetry logger when we aren't in an IEx shell
unless Code.ensure_loaded?(IEx) && IEx.started?() do
Oban.Telemetry.attach_default_logger(:info)