Log errors when publishing activities
This commit is contained in:
parent
08ba9a15b2
commit
efd50759d5
|
@ -117,8 +117,9 @@ def publish_one(%{inbox: inbox, json: json, actor: %User{} = actor, id: id} = pa
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue