Transmogrifier.fix_in_reply_to/2: Use warn for non-fatal fail to get replied-to post
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Mon, 13 Jul 2020 12:27:25 +0000 (14:27 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Mon, 13 Jul 2020 13:26:30 +0000 (15:26 +0200)
lib/pleroma/web/activity_pub/transmogrifier.ex
test/web/activity_pub/transmogrifier_test.exs

index 884646cebf98ce45e85a342523e16ac41e2c28f5..168422c9379fc82a5dd1d922bec851c472314eb4 100644 (file)
@@ -176,7 +176,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
         |> Map.drop(["conversation"])
       else
         e ->
-          Logger.error("Couldn't fetch #{inspect(in_reply_to_id)}, error: #{inspect(e)}")
+          Logger.warn("Couldn't fetch #{inspect(in_reply_to_id)}, error: #{inspect(e)}")
           object
       end
     else
index f7b7d1a9f2b89063495a584705ff0293da8a495e..fd8e7f24f8f472deec09a3f27da3dddff783e3e7 100644 (file)
@@ -160,7 +160,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
 
       assert capture_log(fn ->
                {:ok, _returned_activity} = Transmogrifier.handle_incoming(data)
-             end) =~ "[error] Couldn't fetch \"https://404.site/whatever\", error: nil"
+             end) =~ "[warn] Couldn't fetch \"https://404.site/whatever\", error: nil"
     end
 
     test "it works for incoming notices" do