From facd6f3bf34b5a1142363dc21d8270985020815d Mon Sep 17 00:00:00 2001 From: Vika Date: Sun, 9 Jul 2023 01:41:42 +0300 Subject: micropub: a little bit more logging --- kittybox-rs/src/micropub/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kittybox-rs/src/micropub/mod.rs b/kittybox-rs/src/micropub/mod.rs index fe3db57..9351603 100644 --- a/kittybox-rs/src/micropub/mod.rs +++ b/kittybox-rs/src/micropub/mod.rs @@ -276,6 +276,7 @@ pub(crate) async fn _post( .unwrap_or_default() ); // Save the post + tracing::debug!("Saving post to database..."); db.put_post(&mf2, &user_domain).await?; let mut channels = mf2["properties"]["channel"] @@ -299,6 +300,7 @@ pub(crate) async fn _post( let default_channels = vec![default_channel, vcards_channel, food_channel]; for chan in &mut channels { + debug!("Adding post {} to channel {}", uid, chan); if db.post_exists(chan).await? { db.add_to_feed(chan, &uid).await?; } else if default_channels.iter().any(|i| chan == i) { -- cgit 1.4.1