From 816c6fb0e077dc5e5632615b8ff14ed9263fc130 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sun, 18 Feb 2018 09:57:57 -0800 Subject: [PATCH] log 5xx responses as error --- src/pipeline.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pipeline.rs b/src/pipeline.rs index 18f9f261..f7282552 100644 --- a/src/pipeline.rs +++ b/src/pipeline.rs @@ -460,7 +460,11 @@ impl ProcessResponse { }; if let Some(err) = self.resp.error() { - warn!("Error occured during request handling: {}", err); + if self.resp.status().is_server_error() { + error!("Error occured during request handling: {}", err); + } else { + warn!("Error occured during request handling: {}", err); + } if log_enabled!(Debug) { debug!("{:?}", err); }