From a06b9a3e0b5639dfc3a975c7a5f3ea11a05a286f Mon Sep 17 00:00:00 2001 From: lain Date: Wed, 21 Feb 2018 16:22:20 +0100 Subject: [PATCH] Logging. --- lib/pleroma/web/activity_pub/activity_pub.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 4fe99d55a..554d3a008 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -324,6 +324,7 @@ def fetch_object_from_id(id) do if object = Object.get_cached_by_ap_id(id) do {:ok, object} else + Logger.info("Fetching #{id} via AP") with {:ok, %{body: body, status_code: code}} when code in 200..299 <- @httpoison.get(id, [Accept: "application/activity+json"], follow_redirect: true, timeout: 10000, recv_timeout: 20000), {:ok, data} <- Poison.decode(body), nil <- Object.get_by_ap_id(data["id"]),