Use Logger.info for {:reject, reason}
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Mon, 13 Jul 2020 12:23:03 +0000 (14:23 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Mon, 13 Jul 2020 13:26:31 +0000 (15:26 +0200)
lib/pleroma/object/fetcher.ex
lib/pleroma/web/activity_pub/activity_pub.ex

index 3e2949ee2354f3009ae68142a1a01a5a10b86c6b..e74c87269f2d5b5bc47e039818dae47a3c93b5c8 100644 (file)
@@ -124,6 +124,10 @@ defmodule Pleroma.Object.Fetcher do
       {:error, "Object has been deleted"} ->
         nil
 
+      {:reject, reason} ->
+        Logger.info("Rejected #{id} while fetching: #{inspect(reason)}")
+        nil
+
       e ->
         Logger.error("Error while fetching #{id}: #{inspect(e)}")
         nil
index bc7b5d95a6925e98d5f67237d832f6be50322785..a4db1d87c42334432396e10ccc2cf6d41176a363 100644 (file)
@@ -1370,6 +1370,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
         Logger.debug("Could not decode user at fetch #{ap_id}, #{inspect(e)}")
         {:error, e}
 
+      {:error, {:reject, reason} = e} ->
+        Logger.info("Rejected user #{ap_id}: #{inspect(reason)}")
+        {:error, e}
+
       {:error, e} ->
         Logger.error("Could not decode user at fetch #{ap_id}, #{inspect(e)}")
         {:error, e}