object: downgrade normalize warning to debug severity
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Mar 2019 03:00:04 +0000 (03:00 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Mar 2019 03:05:15 +0000 (03:05 +0000)
lib/pleroma/object.ex

index 0f5c532eceedec1a32599503bb958914ffe30d41..193ae3fa884335b85e602348b9567c354a46c39f 100644 (file)
@@ -47,18 +47,22 @@ defmodule Pleroma.Object do
   # Catch and log Object.normalize() calls where the Activity's child object is not
   # preloaded.
   def normalize(%Activity{data: %{"object" => %{"id" => ap_id}}}) do
-    Logger.info(
+    Logger.debug(
       "Object.normalize() called without preloaded object (#{ap_id}).  Consider preloading the object!"
     )
 
+    Logger.debug("Backtrace: #{inspect(Process.info(:erlang.self(), :current_stacktrace))}")
+
     normalize(ap_id)
   end
 
   def normalize(%Activity{data: %{"object" => ap_id}}) do
-    Logger.info(
+    Logger.debug(
       "Object.normalize() called without preloaded object (#{ap_id}).  Consider preloading the object!"
     )
 
+    Logger.debug("Backtrace: #{inspect(Process.info(:erlang.self(), :current_stacktrace))}")
+
     normalize(ap_id)
   end