diff --git a/src/lib.rs b/src/lib.rs index d18ba3c..f2a40b9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -116,6 +116,8 @@ pub enum ActixAdminError { impl error::ResponseError for ActixAdminError { fn error_response(&self) -> HttpResponse { + #[cfg(enable-tracing)] + tracing::debug!("{self}"); HttpResponse::build(self.status_code()) .insert_header(ContentType::html()) .body(self.to_string())