]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/activities/create_or_update/comment.rs
Add logging to debug federation issues (ref #2096) (#2099)
[lemmy.git] / crates / apub / src / activities / create_or_update / comment.rs
index 7d6d89048369fb9627523fec82d3c6fd0c957565..451cb867030ba5edfde006956d6e7a680a6a51d8 100644 (file)
@@ -26,6 +26,7 @@ use lemmy_db_schema::{
 };
 use lemmy_utils::LemmyError;
 use lemmy_websocket::{send::send_comment_ws_message, LemmyContext, UserOperationCrud};
+use tracing::info;
 
 impl CreateOrUpdateComment {
   #[tracing::instrument(skip(comment, actor, kind, context))]
@@ -50,6 +51,7 @@ impl CreateOrUpdateComment {
       kind.clone(),
       &context.settings().get_protocol_and_hostname(),
     )?;
+    info!("Sending Create/Comment for {} as {}", comment.ap_id, id);
     let note = comment.into_apub(context).await?;
 
     let create_or_update = CreateOrUpdateComment {