Add configurable loglevel

This commit is contained in:
sn0w 2018-06-07 12:37:17 +02:00
parent 4f809d72b8
commit f991dc0329
3 changed files with 7 additions and 0 deletions

View File

@ -61,6 +61,10 @@ MIX_ENV=prod
# The git tag, revision, or branch to check out on build # The git tag, revision, or branch to check out on build
PLEROMA_VERSION=develop PLEROMA_VERSION=develop
# The loglevel to use
# (error/warn/info/debug)
PLEROMA_LOGLEVEL=warn
# The domain/scheme where pleroma will be hosted # The domain/scheme where pleroma will be hosted
# URL is a bare TLD # URL is a bare TLD
# SCHEME is the protocol without "://" # SCHEME is the protocol without "://"

View File

@ -101,6 +101,7 @@ define(<env_inline_fb>, <${upcase($1):-$2}>)
"env(<postgres_password>)", "env(<postgres_password>)",
"env(<pleroma_url>)", "env(<pleroma_url>)",
"env(<pleroma_loglevel>)",
"env(<pleroma_scheme>)", "env(<pleroma_scheme>)",
"env(<pleroma_port>)", "env(<pleroma_port>)",
"env(<pleroma_secret_key_base>)", "env(<pleroma_secret_key_base>)",

View File

@ -14,6 +14,8 @@ defmodule Docker do
end end
end end
config :logger, level: String.to_atom(Docker.env(:loglevel) || "info")
config :pleroma, Pleroma.Web.Endpoint, config :pleroma, Pleroma.Web.Endpoint,
url: [ url: [
host: Docker.env(:url), host: Docker.env(:url),