fix: some logging on fetcher and dispatcher

This commit is contained in:
əlemi 2024-03-26 01:14:43 +01:00
parent 13f99532fe
commit 0c8afc2780
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 3 additions and 1 deletions

View file

@ -42,6 +42,8 @@ impl Dispatcher {
continue; // go back to top
}
tracing::info!("delivering {} to {}", delivery.activity, delivery.target);
let payload = match model::activity::Entity::find_by_id(&delivery.activity)
.find_also_related(model::object::Entity)
.one(&db)

View file

@ -34,7 +34,7 @@ impl Fetcher {
}
// TODO sign http fetches, we got the app key and db to get user keys just in case
tracing::info!("fetching {id}");
let user = reqwest::Client::new()
.get(id)
.header(USER_AGENT, format!("upub+{VERSION} ({})", self.domain)) // TODO put instance admin email