forked from AkkomaGang/akkoma
revert non needable
This commit is contained in:
parent
9e10b90b5b
commit
ce027fd0ef
2 changed files with 4 additions and 5 deletions
|
@ -4,12 +4,11 @@
|
||||||
|
|
||||||
defmodule Mix.Pleroma do
|
defmodule Mix.Pleroma do
|
||||||
@doc "Common functions to be reused in mix tasks"
|
@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)
|
Application.put_env(:phoenix, :serve_endpoints, false, persistent: true)
|
||||||
|
|
||||||
if Pleroma.Config.get(:env) != :test and change_logger_level do
|
if Pleroma.Config.get(:env) != :test do
|
||||||
require Logger
|
Application.put_env(:logger, :console, level: :debug)
|
||||||
Logger.configure(:console, level: :debug)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
{:ok, _} = Application.ensure_all_started(:pleroma)
|
{:ok, _} = Application.ensure_all_started(:pleroma)
|
||||||
|
|
|
@ -17,7 +17,7 @@ defmodule Mix.Tasks.Pleroma.Config do
|
||||||
|
|
||||||
def run(["migrate_to_db"]) do
|
def run(["migrate_to_db"]) do
|
||||||
# we want to save original logger level
|
# we want to save original logger level
|
||||||
start_pleroma(false)
|
start_pleroma()
|
||||||
migrate_to_db()
|
migrate_to_db()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue