From 60549bd227f5a77107ae23766522ddf01a4f0be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Wo=C5=BAniak?= Date: Sat, 29 Jul 2023 20:49:21 +0200 Subject: [PATCH] Update lib.rs --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) 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())