receiver_worker: log unecpected errors

This can't handle process crash errors
but i hope those get a stacktrace logged by default
This commit is contained in:
Oneric 2024-12-04 01:59:02 +01:00
parent a29f7321f2
commit 573ca012ab

View file

@ -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