From 31dae40685512dd4745e67bbc4f93a0a05c21bb1 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 20 May 2025 16:13:27 +0200 Subject: [PATCH] add tracing to get of authed client --- backend/windmill-worker/src/worker.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/windmill-worker/src/worker.rs b/backend/windmill-worker/src/worker.rs index 235cf9472b..ede454281d 100644 --- a/backend/windmill-worker/src/worker.rs +++ b/backend/windmill-worker/src/worker.rs @@ -399,9 +399,10 @@ impl AuthedClient { ) .send() .await - .context(format!( - "Executing request from authed http client to {url} with query {query:?}", - )) + .map_err(|e| { + tracing::error!("Error executing get request from authed http client to {url} with query {query:?}: {e}"); + anyhow::anyhow!("Error executing get request from authed http client to {url} with query {query:?}: {e}") + }) } pub async fn get_id_token(&self, audience: &str) -> anyhow::Result {