Set Logger level to :info in prod

This commit is contained in:
Egor Kislitsyn 2019-12-09 19:11:54 +07:00
parent 84f891ea3e
commit ed92784e7c
2 changed files with 4 additions and 3 deletions

View file

@ -20,8 +20,8 @@ config :pleroma, Pleroma.Web.Endpoint,
config :phoenix, serve_endpoints: true config :phoenix, serve_endpoints: true
# Do not print debug messages in production # Do not print debug messages in production
config :logger, :console, level: :warn config :logger, :console, level: :info
config :logger, :ex_syslogger, level: :warn config :logger, :ex_syslogger, level: :info
# ## SSL Support # ## SSL Support
# #

View file

@ -5,6 +5,7 @@
defmodule Pleroma.Application do defmodule Pleroma.Application do
import Cachex.Spec import Cachex.Spec
use Application use Application
require Logger
@name Mix.Project.config()[:name] @name Mix.Project.config()[:name]
@version Mix.Project.config()[:version] @version Mix.Project.config()[:version]
@ -81,7 +82,7 @@ defmodule Pleroma.Application do
{:ok, modules, _warnings} -> {:ok, modules, _warnings} ->
if @env != :test do if @env != :test do
Enum.each(modules, fn mod -> Enum.each(modules, fn mod ->
IO.puts("Custom module loaded: #{inspect(mod)}") Logger.info("Custom module loaded: #{inspect(mod)}")
end) end)
end end