Object: Use inspect to log missing preload.
authorlain <lain@soykaf.club>
Thu, 21 Nov 2019 13:03:01 +0000 (14:03 +0100)
committerlain <lain@soykaf.club>
Thu, 21 Nov 2019 13:03:01 +0000 (14:03 +0100)
lib/pleroma/object.ex

index d9b41d710cebb6296a3b2d4cb41521feb2c27030..cde0eddd9e8d72267f4522d5c825d87a50db1a23 100644 (file)
@@ -63,7 +63,7 @@ defmodule Pleroma.Object do
   end
 
   defp warn_on_no_object_preloaded(ap_id) do
-    "Object.normalize() called without preloaded object (#{ap_id}). Consider preloading the object"
+    "Object.normalize() called without preloaded object (#{inspect(ap_id)}). Consider preloading the object"
     |> Logger.debug()
 
     Logger.debug("Backtrace: #{inspect(Process.info(:erlang.self(), :current_stacktrace))}")