update logging for micropub
This commit is contained in:
parent
e52ae4af22
commit
78631b2e04
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue