1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-22 16:03:25 +00:00

Fix ecto dev warning

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-11-07 09:02:09 +01:00
parent 1a6967cb7d
commit 67b63a9a6e
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 8 additions and 4 deletions

View file

@ -77,9 +77,7 @@ defmodule Mobilizon do
ErrorReporting.configure()
if @env == :dev do
Ecto.DevLogger.install(Storage.Repo)
end
setup_ecto_dev_logger(@env)
# Only attach the telemetry logger when we aren't in an IEx shell
unless Code.ensure_loaded?(IEx) && IEx.started?() do
@ -156,4 +154,10 @@ defmodule Mobilizon do
restart: :temporary
}
end
defp setup_ecto_dev_logger(:dev) do
Ecto.DevLogger.install(Storage.Repo)
end
defp setup_ecto_dev_logger(_), do: nil
end

View file

@ -223,7 +223,7 @@ defmodule Mobilizon.Mixfile do
{:sobelow, "~> 0.8", only: [:dev, :test]},
{:doctor, "~> 0.20.0", only: :dev},
{:haversine, "~> 0.1.0"},
{:ecto_dev_logger, "~> 0.7", only: :dev}
{:ecto_dev_logger, "~> 0.7"}
] ++ oauth_deps()
end