From 47228a8d3c1cc585aa4ad2d79b2e58ea85f64afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sun, 25 Sep 2022 12:06:38 +0200 Subject: [PATCH] http: add debug statement on invalid requests --- aquatic_http/src/workers/socket.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aquatic_http/src/workers/socket.rs b/aquatic_http/src/workers/socket.rs index 7c2e856..927c53f 100644 --- a/aquatic_http/src/workers/socket.rs +++ b/aquatic_http/src/workers/socket.rs @@ -255,6 +255,8 @@ impl Connection { failure_reason: "Invalid request".into(), }; + ::log::debug!("Invalid request: {:#}", err); + return Ok(Either::Left(response)); } Err(RequestParseError::NeedMoreData) => {