activitypub: clean up logging statements a little
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Feb 2019 19:42:33 +0000 (19:42 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Feb 2019 19:42:33 +0000 (19:42 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex

index c46d8233e04aa77dfef3a4da5e0d49d66679454f..ab2872f56aadcc36e87da85c0ccc795b469e10dc 100644 (file)
@@ -818,8 +818,6 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
     if object = Object.get_cached_by_ap_id(id) do
       {:ok, object}
     else
-      Logger.info("Fetching #{id} via AP")
-
       with {:ok, data} <- fetch_and_contain_remote_object_from_id(id),
            nil <- Object.normalize(data),
            params <- %{
@@ -851,7 +849,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
   end
 
   def fetch_and_contain_remote_object_from_id(id) do
-    Logger.info("Fetching #{id} via AP")
+    Logger.info("Fetching object #{id} via AP")
 
     with true <- String.starts_with?(id, "http"),
          {:ok, %{body: body, status: code}} when code in 200..299 <-