From ce027fd0ef1080b03e7982e5939b0c7db6e3b783 Mon Sep 17 00:00:00 2001 From: Alexander Strizhakov Date: Fri, 17 Jan 2020 15:13:24 +0300 Subject: [PATCH] revert non needable --- lib/mix/pleroma.ex | 7 +++---- lib/mix/tasks/pleroma/config.ex | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/mix/pleroma.ex b/lib/mix/pleroma.ex index a6b00d4be..73a076a53 100644 --- a/lib/mix/pleroma.ex +++ b/lib/mix/pleroma.ex @@ -4,12 +4,11 @@ defmodule Mix.Pleroma do @doc "Common functions to be reused in mix tasks" - def start_pleroma(change_logger_level \\ true) do + def start_pleroma do Application.put_env(:phoenix, :serve_endpoints, false, persistent: true) - if Pleroma.Config.get(:env) != :test and change_logger_level do - require Logger - Logger.configure(:console, level: :debug) + if Pleroma.Config.get(:env) != :test do + Application.put_env(:logger, :console, level: :debug) end {:ok, _} = Application.ensure_all_started(:pleroma) diff --git a/lib/mix/tasks/pleroma/config.ex b/lib/mix/tasks/pleroma/config.ex index d2abbd885..43039ae77 100644 --- a/lib/mix/tasks/pleroma/config.ex +++ b/lib/mix/tasks/pleroma/config.ex @@ -17,7 +17,7 @@ defmodule Mix.Tasks.Pleroma.Config do def run(["migrate_to_db"]) do # we want to save original logger level - start_pleroma(false) + start_pleroma() migrate_to_db() end -- 2.45.2