more debug log

This commit is contained in:
phiresky 2023-09-20 12:29:09 +00:00
parent 78a8a7b8b7
commit a59a94492d
2 changed files with 14 additions and 1 deletions

View file

@ -194,7 +194,7 @@ fn generate_announce_activity_id(
"{}/activities/{}/{}/{}",
protocol_and_hostname,
AnnounceType::Announce.to_string().to_lowercase(),
inner_kind,
inner_kind.to_lowercase(),
Uuid::new_v4()
);
Url::parse(&id)

View file

@ -168,6 +168,12 @@ impl InstanceWorker {
self.state.last_successful_id = id;
continue;
};
tracing::info!(
"processing send of {} {} for {}",
ele.0.id,
ele.0.ap_id,
self.instance.domain
);
if let Err(e) = self.send_retry_loop(pool, &ele.0, &ele.1).await {
tracing::warn!(
"sending {} errored internally, skipping activity: {:?}",
@ -197,6 +203,13 @@ impl InstanceWorker {
.get_inbox_urls(pool, activity)
.await
.context("failed figuring out inbox urls")?;
tracing::info!(
"inboxes of {} for {} {}: {:?}",
self.instance.domain,
activity.id,
activity.ap_id,
inbox_urls
);
if inbox_urls.is_empty() {
self.state.last_successful_id = activity.id;
return Ok(());