diff options
author | Mark Felder <feld@feld.me> | 2023-12-29 00:25:11 -0500 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2023-12-29 00:25:11 -0500 |
commit | 77949d4590b2a82ef6bb4c79f0777962991e28b1 (patch) | |
tree | 4bb3771094636e6013c6014353e84010c2c0a24b | |
parent | 3954dfd4f1881845a60f117a86ef96f3997c6c3c (diff) | |
download | pleroma-77949d4590b2a82ef6bb4c79f0777962991e28b1.tar.gz pleroma-77949d4590b2a82ef6bb4c79f0777962991e28b1.zip |
Make the Publisher log error less noisy
-rw-r--r-- | changelog.d/publisher_log.change | 1 | ||||
-rw-r--r-- | lib/pleroma/web/activity_pub/publisher.ex | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/changelog.d/publisher_log.change b/changelog.d/publisher_log.change new file mode 100644 index 000000000..3f85f5a1e --- /dev/null +++ b/changelog.d/publisher_log.change @@ -0,0 +1 @@ +Publisher errors will now emit logs indicating the inbox that was not available for delivery. diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex index e0dd2e7c9..103b00f11 100644 --- a/lib/pleroma/web/activity_pub/publisher.ex +++ b/lib/pleroma/web/activity_pub/publisher.ex @@ -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 |