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 :phoenix, serve_endpoints: true
# Do not print debug messages in production
config :logger, :console, level: :warn
config :logger, :ex_syslogger, level: :warn
config :logger, :console, level: :info
config :logger, :ex_syslogger, level: :info
# ## SSL Support
#

View File

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