diff options
author | Vika <vika@fireburn.ru> | 2023-07-09 01:41:42 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-07-09 01:41:42 +0300 |
commit | facd6f3bf34b5a1142363dc21d8270985020815d (patch) | |
tree | 3b04f4f4a9a83a9561cdf1f664482e7009cd5635 /kittybox-rs/src/micropub/mod.rs | |
parent | 11121d4713abf886d95451eced880848eaf098ba (diff) | |
download | kittybox-facd6f3bf34b5a1142363dc21d8270985020815d.tar.zst |
micropub: a little bit more logging
Diffstat (limited to 'kittybox-rs/src/micropub/mod.rs')
-rw-r--r-- | kittybox-rs/src/micropub/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<D: 'static + Storage>( .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<D: 'static + Storage>( 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) { |