Skip to content

Commit 3860674

Browse files
committed
util/errors: Log database connection pool errors
1 parent 8b652fc commit 3860674

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/errors.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ impl From<EmailError> for BoxedAppError {
172172
}
173173

174174
impl From<diesel_async::pooled_connection::deadpool::PoolError> for BoxedAppError {
175-
fn from(_err: diesel_async::pooled_connection::deadpool::PoolError) -> BoxedAppError {
175+
fn from(err: diesel_async::pooled_connection::deadpool::PoolError) -> BoxedAppError {
176+
error!("Database pool error: {err}");
176177
service_unavailable()
177178
}
178179
}

0 commit comments

Comments
 (0)