chore: log database errors to Sentry

This commit is contained in:
Paul Makles
2024-12-17 21:09:44 +00:00
parent 443f374f23
commit ac731e547d
4 changed files with 32 additions and 17 deletions

View File

@@ -23,6 +23,17 @@ macro_rules! report_error {
};
}
#[cfg(feature = "report-macros")]
#[macro_export]
macro_rules! capture_internal_error {
( $expr: expr ) => {
$crate::capture_message(
&format!("{:?} ({}:{}:{})", $expr, file!(), line!(), column!()),
$crate::Level::Error,
);
};
}
#[cfg(feature = "report-macros")]
#[macro_export]
macro_rules! report_internal_error {