From 1133fe9a638d063fe8023a183446376420377035 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 14 May 2019 06:23:22 +0200 Subject: [PATCH] src/server/rest.rs: do not log 1xx status codes as errors --- src/server/rest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/rest.rs b/src/server/rest.rs index 8ecfc02b..4ce7cf34 100644 --- a/src/server/rest.rs +++ b/src/server/rest.rs @@ -63,7 +63,7 @@ fn log_response(method: hyper::Method, path: &str, resp: &Response) { 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 ?