src/server/rest.rs: do not log 1xx status codes as errors

This commit is contained in:
Dietmar Maurer 2019-05-14 06:23:22 +02:00
parent 850ac6d0f0
commit 1133fe9a63

View File

@ -63,7 +63,7 @@ fn log_response(method: hyper::Method, path: &str, resp: &Response<Body>) {
let status = resp.status();
if !status.is_success() {
if !(status.is_success() || status.is_informational()) {
let reason = status.canonical_reason().unwrap_or("unknown reason");
let client = "unknown"; // fixme: howto get peer_addr ?