Skip to content

Commit

Permalink
Reduce the level of the emitted log line from error to debug. (#2196
Browse files Browse the repository at this point in the history
)

Co-authored-by: Rob Ede <robjtede@icloud.com>
  • Loading branch information
LukeMathWalker and robjtede committed May 2, 2021
1 parent 3a0fb3f commit c17662f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions actix-http/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
* `header` mod is now public. [#2171]
* `uri` mod is now public. [#2171]
* Update `language-tags` to `0.3`.
* Reduce the level from `error` to `debug` for the log line that is emitted when a `500 Internal Server Error` is built using `HttpResponse::from_error`. [#2196]

### Removed
* Stop re-exporting `http` crate's `HeaderMap` types in addition to ours. [#2171]

[#2171]: https://github.com/actix/actix-web/pull/2171
[#2196]: https://github.com/actix/actix-web/pull/2196


## 3.0.0-beta.6 - 2021-04-17
Expand Down
2 changes: 1 addition & 1 deletion actix-http/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl Response<Body> {
pub fn from_error(error: Error) -> Response<Body> {
let mut resp = error.as_response_error().error_response();
if resp.head.status == StatusCode::INTERNAL_SERVER_ERROR {
error!("Internal Server Error: {:?}", error);
debug!("Internal Server Error: {:?}", error);
}
resp.error = Some(error);
resp
Expand Down

0 comments on commit c17662f

Please sign in to comment.