Elixir 1.19: Warn on adding :console to Logger backends

Logger.Backend.Console still exists, but it is unused in our
configuration. Instead logging to console is done from Logger's
"default_handler".
This commit is contained in:
Phantasm 2026-01-12 19:35:12 +01:00 • committed by Phantasm
commit 39409a784d
2 changed files with 30 additions and 9 deletions

View file

@ -19,4 +19,15 @@ defmodule Pleroma.ApplicationTest do
assert log =~ "Successfully added logger backend: {ExSyslogger, :ex_syslogger}"
end
end
describe "config :pleroma, :logger, :backends: [:console]" do
setup do
clear_config([:logger, :backends], [:console])
end
test "emits a warning" do
assert capture_log(fn -> Pleroma.Application.configure_logger() end) =~
":console is no longer considered a backend and is enabled by default"
end
end
end