summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-06-18 17:06:09 +0000
committerMark Felder <feld@feld.me>2024-06-18 17:06:09 +0000
commitc11c35cf8f1658d813af449fa339b00dbda22bd9 (patch)
treeee79039e00b8b74bb8cab9f91e60a4ebb1a5b2fe /mix.exs
parente43e09a04cd3fc6d5fef3ffc870e789d520378b4 (diff)
downloadpleroma-c11c35cf8f1658d813af449fa339b00dbda22bd9.tar.gz
pleroma-c11c35cf8f1658d813af449fa339b00dbda22bd9.zip
Enable :logger_backends application on < Elixir 1.15
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs25
1 files changed, 17 insertions, 8 deletions
diff --git a/mix.exs b/mix.exs
index 0642c3760..302f8b959 100644
--- a/mix.exs
+++ b/mix.exs
@@ -73,14 +73,15 @@ defmodule Pleroma.Mixfile do
def application do
[
mod: {Pleroma.Application, []},
- extra_applications: [
- :logger,
- :runtime_tools,
- :comeonin,
- :fast_sanitize,
- :os_mon,
- :ssl
- ],
+ extra_applications:
+ [
+ :logger,
+ :runtime_tools,
+ :comeonin,
+ :fast_sanitize,
+ :os_mon,
+ :ssl
+ ] ++ logger_application(),
included_applications: [:ex_syslogger]
]
end
@@ -109,6 +110,14 @@ defmodule Pleroma.Mixfile do
for s <- oauth_strategy_packages, do: {String.to_atom(s), ">= 0.0.0"}
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
if Version.match?(System.version(), "<1.15.0-rc.0") do
[]