logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: efd50759d587977a52db01ef6ececc961c736604
parent 08ba9a15b2b5fe6896197ab947bc59d57f4845c8
Author: Mark Felder <feld@feld.me>
Date:   Thu, 28 Dec 2023 22:59:27 -0500

Log errors when publishing activities

Diffstat:

Mlib/pleroma/web/activity_pub/publisher.ex3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex @@ -117,8 +117,9 @@ defmodule Pleroma.Web.ActivityPub.Publisher do result else - {_post_result, response} -> + {_post_result, response} = e -> unless params[:unreachable_since], do: Instances.set_unreachable(inbox) + Logger.error("Failed to publish activity #{id} #{inspect(e)}") {:error, response} end end