Make the Publisher log error less noisy
This commit is contained in:
parent
3954dfd4f1
commit
77949d4590
1
changelog.d/publisher_log.change
Normal file
1
changelog.d/publisher_log.change
Normal file
@ -0,0 +1 @@
|
||||
Publisher errors will now emit logs indicating the inbox that was not available for delivery.
|
@ -119,7 +119,8 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
|
||||
else
|
||||
{_post_result, response} = e ->
|
||||
unless params[:unreachable_since], do: Instances.set_unreachable(inbox)
|
||||
Logger.error("Failed to publish activity #{id} #{inspect(e)}")
|
||||
Logger.metadata(activity: id, inbox: inbox, status: code)
|
||||
Logger.error("Publisher failed to inbox #{inbox} with status #{code}")
|
||||
{:error, response}
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user