logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 751712d97022fa99a190cda228a9bcc10b42ede9
parent 7a8be68241c9872a4271b53c30ebdc34f9ecf41d
Author: Mark Felder <feld@FreeBSD.org>
Date:   Wed, 25 Nov 2020 12:52:39 -0600

Prevent mix tasks from spewing any internal logging unless DEBUG is in the env

e.g., DEBUG=1 mix pleroma.config migrate_from_db

Diffstat:

Mlib/mix/pleroma.ex4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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)