From 573ca012ab5438318608f3880aca9ee039f925ac Mon Sep 17 00:00:00 2001 From: Oneric Date: Wed, 4 Dec 2024 01:59:02 +0100 Subject: [PATCH] receiver_worker: log unecpected errors This can't handle process crash errors but i hope those get a stacktrace logged by default --- lib/pleroma/workers/receiver_worker.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pleroma/workers/receiver_worker.ex b/lib/pleroma/workers/receiver_worker.ex index 193b500f4..6a8f89a03 100644 --- a/lib/pleroma/workers/receiver_worker.ex +++ b/lib/pleroma/workers/receiver_worker.ex @@ -34,9 +34,11 @@ def perform(%Job{args: %{"op" => "incoming_ap_doc", "params" => params}}) do {:discard, :invalid} {:error, _} = e -> + Logger.error("Unexpected AP doc error: #{inspect(e)} from #{inspect(params)}") e e -> + Logger.error("Unexpected AP doc error: (raw) #{inspect(e)} from #{inspect(params)}") {:error, e} end end