fix(feedback): refine summary and error states

This commit is contained in:
zhangheng
2026-07-22 19:30:26 +08:00
parent 0a2509d923
commit 7934d64520
4 changed files with 90 additions and 9 deletions

View File

@@ -92,10 +92,11 @@ impl IntoResponse for ApiError {
}
impl From<sqlx::Error> for ApiError {
fn from(_: sqlx::Error) -> Self {
fn from(error: sqlx::Error) -> Self {
tracing::error!(
event = "database_query_failed",
error_class = "database_query_failed",
error = %error,
"database query failed"
);
Self::Internal