update logging for micropub

This commit is contained in:
Inhji 2023-08-21 19:54:30 +02:00
parent e52ae4af22
commit 78631b2e04

View file

@ -99,6 +99,8 @@ defmodule ChiyaWeb.Indie.Micropub do
|> Enum.into(replace_attrs)
|> Enum.into(add_attrs)
Logger.info("Update attributes: #{inspect(attrs)}")
{:ok, attrs}
end
@ -164,6 +166,8 @@ defmodule ChiyaWeb.Indie.Micropub do
|> get_base_attrs()
|> get_channel(channel_id)
Logger.info("Note attributes: #{inspect(attrs)}")
{:ok, attrs}
end
@ -177,6 +181,8 @@ defmodule ChiyaWeb.Indie.Micropub do
|> Map.put_new(:url, url)
|> Map.put_new(:kind, :bookmark)
Logger.info("Bookmark attributes: #{inspect(attrs)}")
{:ok, attrs}
end
@ -197,6 +203,8 @@ defmodule ChiyaWeb.Indie.Micropub do
published_at: published_at
}
Logger.info("Base attributes: #{inspect(attrs)}")
attrs
end