Allow mix tasks to always run with debug logging

This commit is contained in:
Mark Felder 2019-11-19 16:01:17 -06:00
commit ff9133b978
4 changed files with 4 additions and 2 deletions

View file

@ -6,6 +6,7 @@ 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)
{:ok, _} = Application.ensure_all_started(:pleroma)
end