From 78631b2e0415ef53bc58c3bb11ad4bd013a4cd22 Mon Sep 17 00:00:00 2001 From: Inhji Date: Mon, 21 Aug 2023 19:54:30 +0200 Subject: [PATCH] update logging for micropub --- lib/chiya_web/indie/micropub.ex | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/chiya_web/indie/micropub.ex b/lib/chiya_web/indie/micropub.ex index b7fb9b2..adea4ce 100644 --- a/lib/chiya_web/indie/micropub.ex +++ b/lib/chiya_web/indie/micropub.ex @@ -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 -- 2.39.5