From b5452c2954e46a950b7b8dcb2f3fb517c00c5a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sun, 16 Aug 2020 21:15:05 +0200 Subject: [PATCH] aquatic_http: debug-log responses in full --- aquatic_http/src/lib/network/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aquatic_http/src/lib/network/mod.rs b/aquatic_http/src/lib/network/mod.rs index d11cdd1..0d6d743 100644 --- a/aquatic_http/src/lib/network/mod.rs +++ b/aquatic_http/src/lib/network/mod.rs @@ -339,7 +339,11 @@ pub fn send_responses( match established.send_response(&buffer.get_mut()[..bytes_written]){ Ok(()) => { - debug!("sent response"); + ::log::debug!( + "sent response: {:?} with response string {}", + response, + String::from_utf8_lossy(&buffer.get_ref()[..bytes_written]) + ); if !config.network.keep_alive { remove_connection(poll, connections, &meta.poll_token);