From 02a7a36ac7962f45bb313c2421bd416dab04cf5a 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 7abe3f9..26e7110 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -117,6 +117,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())