From e45e9fa8b50daa028233fd739fe96a3bdc8ec54b Mon Sep 17 00:00:00 2001 From: batsumaru <> Date: Fri, 16 Oct 2026 16:18:02 +0900 Subject: Add more logging --- src/error.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index d16106a..6bc4fc5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -76,6 +76,9 @@ impl IntoResponse for AppError { AppError::NotFound => (StatusCode::NOT_FOUND, "not found".to_owned()), AppError::Rejection(status, message) => (status, message), }; + if status.is_client_error() { + tracing::debug!(%status, error = %message, "request failed"); + } (status, Json(json!({ "error": message }))).into_response() } } -- cgit v1.3