From 6efd121080095bfc8eb4423c374d5e6b567efdc0 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 15 Jun 2024 02:13:52 +0200 Subject: [PATCH] fix: show why http sign failed fetching in dbg --- upub/routes/src/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upub/routes/src/auth.rs b/upub/routes/src/auth.rs index c157084..8483575 100644 --- a/upub/routes/src/auth.rs +++ b/upub/routes/src/auth.rs @@ -130,7 +130,7 @@ where match ctx.fetch_user(&user_id, ctx.db()).await { Err(PullError::Database(x)) => return Err(PullError::Database(x).into()), - Err(_) => tracing::debug!("could not fetch {user_id} to verify signature"), + Err(e) => tracing::debug!("could not fetch {user_id} to verify signature: {e}"), Ok(user) => { let valid = http_signature .build_from_parts(parts)