pretty printing internal server error

This commit is contained in:
DominicWrege 2021-01-09 01:26:38 +01:00
parent d40ae8c8ca
commit 5e285d702b
1 changed files with 1 additions and 1 deletions

View File

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