mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-05 16:39:47 +00:00
Make the Publisher log error less noisy
This commit is contained in:
parent
3954dfd4f1
commit
77949d4590
2 changed files with 3 additions and 1 deletions
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 a new issue