diff options
| author | batsumaru <> | 2026-10-16 16:18:02 +0900 |
|---|---|---|
| committer | batsumaru <> | 2026-10-16 16:18:02 +0900 |
| commit | e45e9fa8b50daa028233fd739fe96a3bdc8ec54b (patch) | |
| tree | 680bc21040e0d1f2d121cd0da1087b6078840bb0 /src/error.rs | |
| parent | 13219eb405db7c825d2875b3e88a7a53a73e8b7e (diff) | |
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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() } } |
