fix: some logging on fetcher and dispatcher
This commit is contained in:
parent
13f99532fe
commit
0c8afc2780
2 changed files with 3 additions and 1 deletions
|
@ -42,6 +42,8 @@ impl Dispatcher {
|
||||||
continue; // go back to top
|
continue; // go back to top
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tracing::info!("delivering {} to {}", delivery.activity, delivery.target);
|
||||||
|
|
||||||
let payload = match model::activity::Entity::find_by_id(&delivery.activity)
|
let payload = match model::activity::Entity::find_by_id(&delivery.activity)
|
||||||
.find_also_related(model::object::Entity)
|
.find_also_related(model::object::Entity)
|
||||||
.one(&db)
|
.one(&db)
|
||||||
|
|
|
@ -34,7 +34,7 @@ impl Fetcher {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO sign http fetches, we got the app key and db to get user keys just in case
|
// 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()
|
let user = reqwest::Client::new()
|
||||||
.get(id)
|
.get(id)
|
||||||
.header(USER_AGENT, format!("upub+{VERSION} ({})", self.domain)) // TODO put instance admin email
|
.header(USER_AGENT, format!("upub+{VERSION} ({})", self.domain)) // TODO put instance admin email
|
||||||
|
|
Loading…
Reference in a new issue