From cd62de1d6003c11b6056f630aa9fe4b5931c6507 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 3 Oct 2022 21:34:42 +0200 Subject: Capture DB errors on Sentry --- src/errors.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/errors.rs b/src/errors.rs index c30888e..6b5451b 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -59,6 +59,7 @@ impl IntoResponse for AppError { impl From for AppError { fn from(error: sqlx::Error) -> AppError { tracing::error!("{:?}", error); + sentry::capture_error(&error); AppError::Database } } -- cgit v1.2.3-71-g8e6c