Update lib.rs
This commit is contained in:
parent
a7548208c9
commit
60549bd227
@ -116,6 +116,8 @@ pub enum ActixAdminError {
|
|||||||
|
|
||||||
impl error::ResponseError for ActixAdminError {
|
impl error::ResponseError for ActixAdminError {
|
||||||
fn error_response(&self) -> HttpResponse {
|
fn error_response(&self) -> HttpResponse {
|
||||||
|
#[cfg(enable-tracing)]
|
||||||
|
tracing::debug!("{self}");
|
||||||
HttpResponse::build(self.status_code())
|
HttpResponse::build(self.status_code())
|
||||||
.insert_header(ContentType::html())
|
.insert_header(ContentType::html())
|
||||||
.body(self.to_string())
|
.body(self.to_string())
|
||||||
|
Loading…
Reference in New Issue
Block a user