diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-02-14 19:42:33 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-02-14 19:42:33 +0000 |
commit | 56862f4ce1275689416661847b0734129f5471ae (patch) | |
tree | 3fb3cd5174e770482e1b34cc9b891f6e66d1798b | |
parent | 1d17082ab2523eb75ee0ca4a49e45da0d0edabd7 (diff) | |
download | pleroma-56862f4ce1275689416661847b0734129f5471ae.tar.gz pleroma-56862f4ce1275689416661847b0734129f5471ae.zip |
activitypub: clean up logging statements a little
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index c46d8233e..ab2872f56 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -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 <- |