mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 01:35:21 +00:00
more debug log
This commit is contained in:
parent
78a8a7b8b7
commit
a59a94492d
|
@ -194,7 +194,7 @@ fn generate_announce_activity_id(
|
||||||
"{}/activities/{}/{}/{}",
|
"{}/activities/{}/{}/{}",
|
||||||
protocol_and_hostname,
|
protocol_and_hostname,
|
||||||
AnnounceType::Announce.to_string().to_lowercase(),
|
AnnounceType::Announce.to_string().to_lowercase(),
|
||||||
inner_kind,
|
inner_kind.to_lowercase(),
|
||||||
Uuid::new_v4()
|
Uuid::new_v4()
|
||||||
);
|
);
|
||||||
Url::parse(&id)
|
Url::parse(&id)
|
||||||
|
|
|
@ -168,6 +168,12 @@ impl InstanceWorker {
|
||||||
self.state.last_successful_id = id;
|
self.state.last_successful_id = id;
|
||||||
continue;
|
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 {
|
if let Err(e) = self.send_retry_loop(pool, &ele.0, &ele.1).await {
|
||||||
tracing::warn!(
|
tracing::warn!(
|
||||||
"sending {} errored internally, skipping activity: {:?}",
|
"sending {} errored internally, skipping activity: {:?}",
|
||||||
|
@ -197,6 +203,13 @@ impl InstanceWorker {
|
||||||
.get_inbox_urls(pool, activity)
|
.get_inbox_urls(pool, activity)
|
||||||
.await
|
.await
|
||||||
.context("failed figuring out inbox urls")?;
|
.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() {
|
if inbox_urls.is_empty() {
|
||||||
self.state.last_successful_id = activity.id;
|
self.state.last_successful_id = activity.id;
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
|
Loading…
Reference in a new issue