diff options
author | Mark Felder <feld@FreeBSD.org> | 2019-11-20 11:55:30 -0600 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2019-11-20 11:55:30 -0600 |
commit | edaae845afc63d558c22019b3b3f87bc510a3bdf (patch) | |
tree | 7f2390751bf8c4cf7ff578211af74620ad8ff035 /lib/mix/pleroma.ex | |
parent | c65190c799b6217dca36f9fe4768024b50b725a8 (diff) | |
download | pleroma-edaae845afc63d558c22019b3b3f87bc510a3bdf.tar.gz pleroma-edaae845afc63d558c22019b3b3f87bc510a3bdf.zip |
Some tasks try to set log level in test environment, but we were stripping logs belog :warn.
Ensure console backend logs in test environment are :warn, but mix tasks run in test env
do not run with :debug because it's far too verbose.
Diffstat (limited to 'lib/mix/pleroma.ex')
-rw-r--r-- | lib/mix/pleroma.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mix/pleroma.ex b/lib/mix/pleroma.ex index 94eeb7d68..73a076a53 100644 --- a/lib/mix/pleroma.ex +++ b/lib/mix/pleroma.ex @@ -6,7 +6,11 @@ defmodule Mix.Pleroma do @doc "Common functions to be reused in mix tasks" def start_pleroma do Application.put_env(:phoenix, :serve_endpoints, false, persistent: true) - Application.put_env(:logger, :console, level: :debug) + + if Pleroma.Config.get(:env) != :test do + Application.put_env(:logger, :console, level: :debug) + end + {:ok, _} = Application.ensure_all_started(:pleroma) end |