mirror of https://github.com/fafhrd91/actix-web
pretty printing internal server error
This commit is contained in:
parent
d40ae8c8ca
commit
5e285d702b
|
@ -54,7 +54,7 @@ impl Response<Body> {
|
|||
pub fn from_error(error: Error) -> Response {
|
||||
let mut resp = error.as_response_error().error_response();
|
||||
if resp.head.status == StatusCode::INTERNAL_SERVER_ERROR {
|
||||
error!("Internal Server Error: {:?}", error);
|
||||
error!("Internal Server Error: {:#?}", error);
|
||||
}
|
||||
resp.error = Some(error);
|
||||
resp
|
||||
|
|
Loading…
Reference in New Issue