projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a8be68
)
Prevent mix tasks from spewing any internal logging unless DEBUG is in the env
author
Mark Felder
<feld@FreeBSD.org>
Wed, 25 Nov 2020 18:52:39 +0000
(12:52 -0600)
committer
Mark Felder
<feld@FreeBSD.org>
Wed, 25 Nov 2020 18:52:39 +0000
(12:52 -0600)
e.g., DEBUG=1 mix pleroma.config migrate_from_db
lib/mix/pleroma.ex
patch
|
blob
|
history
diff --git
a/lib/mix/pleroma.ex
b/lib/mix/pleroma.ex
index 6df1cf538156a3ddf7bed446b9e36ed0f0e361d9..cd3f440743d094c3b950d2ff67c5c482ed0be830 100644
(file)
--- a/
lib/mix/pleroma.ex
+++ b/
lib/mix/pleroma.ex
@@
-22,8
+22,8
@@
defmodule Mix.Pleroma do
Pleroma.Application.limiters_setup()
Application.put_env(:phoenix, :serve_endpoints, false, persistent: true)
-
if Pleroma.Config.get(:env) != :test
do
-
Application.put_env(:logger, :console, level: :debug
)
+
unless System.get_env("DEBUG")
do
+
Logger.remove_backend(:console
)
end
adapter = Application.get_env(:tesla, :adapter)