logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 6da5ca9b2d271179e0ec912f642ec51f98be3e80
parent 28b69f5c04e3ef05216c73f85696e44fb4a047af
Author: Mark Felder <feld@feld.me>
Date:   Tue, 22 Jul 2025 14:16:17 -0700

Prevent test crash if it cannot successfully remove the console Logger backend

Diffstat:

Mlib/mix/pleroma.ex6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/mix/pleroma.ex b/lib/mix/pleroma.ex @@ -26,7 +26,11 @@ defmodule Mix.Pleroma do Application.put_env(:phoenix, :serve_endpoints, false, persistent: true) unless System.get_env("DEBUG") do - Logger.remove_backend(:console) + try do + Logger.remove_backend(:console) + catch + :exit, _ -> :ok + end end adapter = Application.get_env(:tesla, :adapter)