Enable :logger_backends application on < Elixir 1.15
This commit is contained in:
parent
e43e09a04c
commit
c11c35cf8f
25
mix.exs
25
mix.exs
@ -73,14 +73,15 @@ defmodule Pleroma.Mixfile do
|
|||||||
def application do
|
def application do
|
||||||
[
|
[
|
||||||
mod: {Pleroma.Application, []},
|
mod: {Pleroma.Application, []},
|
||||||
extra_applications: [
|
extra_applications:
|
||||||
:logger,
|
[
|
||||||
:runtime_tools,
|
:logger,
|
||||||
:comeonin,
|
:runtime_tools,
|
||||||
:fast_sanitize,
|
:comeonin,
|
||||||
:os_mon,
|
:fast_sanitize,
|
||||||
:ssl
|
:os_mon,
|
||||||
],
|
:ssl
|
||||||
|
] ++ logger_application(),
|
||||||
included_applications: [:ex_syslogger]
|
included_applications: [:ex_syslogger]
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
@ -109,6 +110,14 @@ defmodule Pleroma.Mixfile do
|
|||||||
for s <- oauth_strategy_packages, do: {String.to_atom(s), ">= 0.0.0"}
|
for s <- oauth_strategy_packages, do: {String.to_atom(s), ">= 0.0.0"}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp logger_application do
|
||||||
|
if Version.match?(System.version(), "<1.15.0-rc.0") do
|
||||||
|
[]
|
||||||
|
else
|
||||||
|
[:logger_backends]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
defp logger_deps do
|
defp logger_deps do
|
||||||
if Version.match?(System.version(), "<1.15.0-rc.0") do
|
if Version.match?(System.version(), "<1.15.0-rc.0") do
|
||||||
[]
|
[]
|
||||||
|
Loading…
Reference in New Issue
Block a user