Update lib.rs
This commit is contained in:
parent
2f6ca86aa3
commit
02a7a36ac7
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user