TransferTask incorrectly assumes all configuration for logger is prefixed with the backend
I had the following in my prod.secret.exs when I migrated and have not touched the logger configuration since then:
config :logger, :level, :info
After !2365 (merged) got merged, I couldn't start my instance because of:
** (Mix) Could not start application pleroma: Pleroma.Application.start(:normal, []) returned an error: shutdown: failed to start child: Pleroma.Config.TransferTask
** (EXIT) an exception was raised:
** (FunctionClauseError) no function clause matching in Logger.configure_backend/2
(logger) lib/logger.ex:645: Logger.configure_backend(:level, :info)
(pleroma) lib/pleroma/config/transfer_task.ex:138: Pleroma.Config.TransferTask.configure/1
(elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
(elixir) lib/enum.ex:783: Enum.each/2
(pleroma) lib/pleroma/config/transfer_task.ex:64: Pleroma.Config.TransferTask.load_and_update_env/2
(pleroma) lib/pleroma/config/transfer_task.ex:39: Pleroma.Config.TransferTask.start_link/1
(stdlib) supervisor.erl:379: :supervisor.do_start_child_i/3
(stdlib) supervisor.erl:365: :supervisor.do_start_child/2
(stdlib) supervisor.erl:349: anonymous fn/3 in :supervisor.start_children/2
(stdlib) supervisor.erl:1157: :supervisor.children_map/4
(stdlib) supervisor.erl:315: :supervisor.init_children/2
(stdlib) gen_server.erl:374: :gen_server.init_it/2
(stdlib) gen_server.erl:342: :gen_server.init_it/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
I had to delete the logger config using psql to make it start:
delete from config where "group" = ':logger';