summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-03 19:45:36 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-10-03 19:45:36 +0000
commitd39a8c73776d82a115f1a680ce90152407b7cea0 (patch)
tree3761ef7f8c8e928cc75c9ecaffe3e46ad815d337 /src
parent0940a794ce4fd0ed6468902c8589a2c9e2bd4f8e (diff)
Log sentry event created
Diffstat (limited to 'src')
-rw-r--r--src/errors.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 6b5451b..deac334 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -59,7 +59,8 @@ impl IntoResponse for AppError {
impl From<sqlx::Error> for AppError {
fn from(error: sqlx::Error) -> AppError {
tracing::error!("{:?}", error);
- sentry::capture_error(&error);
+ let uuid = sentry::capture_error(&error);
+ tracing::info!("[Sentry] event '{}' created", uuid);
AppError::Database
}
}