X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fmix%2Fpleroma.ex;h=90f8c80081dfe1380c3c792db3acd89706151436;hb=f0753eed0fdddd30e127213c89a118dd2e087dc9;hp=94eeb7d68e2fa665c4c46acf2269061bd3e8ceb3;hpb=ff9133b978edb637081882e7efd49e2f538e9e15;p=akkoma diff --git a/lib/mix/pleroma.ex b/lib/mix/pleroma.ex index 94eeb7d68..90f8c8008 100644 --- a/lib/mix/pleroma.ex +++ b/lib/mix/pleroma.ex @@ -1,12 +1,16 @@ # Pleroma: A lightweight social networking server -# Copyright © 2017-2019 Pleroma Authors +# Copyright © 2017-2020 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only 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) + + if Pleroma.Config.get(:env) != :test do + Application.put_env(:logger, :console, level: :debug) + end + {:ok, _} = Application.ensure_all_started(:pleroma) end