From 0c8afc2780ae94e2e84c201e6bf98c65bd0eccb2 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 26 Mar 2024 01:14:43 +0100 Subject: [PATCH] fix: some logging on fetcher and dispatcher --- src/dispatcher.rs | 2 ++ src/fetcher.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dispatcher.rs b/src/dispatcher.rs index c11a21c..daa18d9 100644 --- a/src/dispatcher.rs +++ b/src/dispatcher.rs @@ -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) diff --git a/src/fetcher.rs b/src/fetcher.rs index 89ee01d..2ab6fe5 100644 --- a/src/fetcher.rs +++ b/src/fetcher.rs @@ -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