diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-10-03 19:07:53 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-10-03 19:07:53 +0000 |
| commit | 3f34d4a54828ed9d3f7eb1046e32e67876be67dd (patch) | |
| tree | 6722dbdc91bf72aaefa9ec6dd5467256feafc397 /src/errors.rs | |
| parent | 09447097adcfbd31f28dc686ec43380b9006ac9e (diff) | |
Log database error
Diffstat (limited to 'src/errors.rs')
| -rw-r--r-- | src/errors.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/errors.rs b/src/errors.rs index 15ca9d4..c30888e 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -57,7 +57,8 @@ impl IntoResponse for AppError { /// Transforms a `sqlx::Error` into a `AppError::Databse` error impl From<sqlx::Error> for AppError { - fn from(_error: sqlx::Error) -> AppError { + fn from(error: sqlx::Error) -> AppError { + tracing::error!("{:?}", error); AppError::Database } } |
