1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-19 06:04:40 +01:00

Log internal server errors (#2387)

This commit is contained in:
Ibraheem Ahmed 2021-11-07 12:02:23 -05:00 committed by GitHub
parent 5e554dca35
commit c020cedb63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,10 +275,8 @@ where
}; };
if let Some(error) = res.response().error() { if let Some(error) = res.response().error() {
if res.response().head().status != StatusCode::INTERNAL_SERVER_ERROR {
debug!("Error in response: {:?}", error); debug!("Error in response: {:?}", error);
} }
}
if let Some(ref mut format) = this.format { if let Some(ref mut format) = this.format {
for unit in &mut format.0 { for unit in &mut format.0 {