mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-24 05:47:41 -04:00
Logger backend runtime configuration fix for Elixir 1.15
This commit is contained in:
parent
de62fd41f7
commit
0f56928df7
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ defmodule Pleroma.Config.TransferTask do
|
|||
# change logger configuration in runtime, without restart
|
||||
defp configure({_, :backends, _, merged}) do
|
||||
# removing current backends
|
||||
Enum.each(Application.get_env(:logger, :backends), &Logger.remove_backend/1)
|
||||
backends = Application.get_env(:logger, :backends) || []
|
||||
Enum.each(backends, &Logger.remove_backend/1)
|
||||
|
||||
Enum.each(merged, &Logger.add_backend/1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue