From 869ccbd65c77e21d44b3c752ca631466c3104b72 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 29 May 2024 22:21:16 +0200 Subject: [PATCH] fix: show what errors we're returning --- src/errors.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/errors.rs b/src/errors.rs index a346c898..16aef3d0 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -78,6 +78,9 @@ impl From for UpubError { impl axum::response::IntoResponse for UpubError { fn into_response(self) -> axum::response::Response { + // TODO it's kind of jank to hide this print down here, i should probably learn how spans work + // in tracing and use the library's features but ehhhh + tracing::error!("{self:?}"); match self { UpubError::Redirect(to) => Redirect::to(&to).into_response(), UpubError::Status(status) => status.into_response(),