Update lib.rs

This commit is contained in:
Adrian Woźniak 2023-07-29 20:49:21 +02:00
parent 2f6ca86aa3
commit 02a7a36ac7

View File

@ -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())