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:
parent
a29f7321f2
commit
573ca012ab
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue