diff --git a/aquatic_http/src/lib/network/connection.rs b/aquatic_http/src/lib/network/connection.rs index e588c29..4aa6dae 100644 --- a/aquatic_http/src/lib/network/connection.rs +++ b/aquatic_http/src/lib/network/connection.rs @@ -60,7 +60,7 @@ impl EstablishedConnection { Ok(bytes_read) => { self.bytes_read += bytes_read; - info!("read_request read {} bytes", bytes_read); + ::log::debug!("read_request read {} bytes", bytes_read); }, Err(err) if err.kind() == ErrorKind::WouldBlock => { return Err(RequestReadError::NeedMoreData); diff --git a/aquatic_http/src/lib/protocol/request.rs b/aquatic_http/src/lib/protocol/request.rs index 98db6e3..6bb7877 100644 --- a/aquatic_http/src/lib/protocol/request.rs +++ b/aquatic_http/src/lib/protocol/request.rs @@ -41,6 +41,8 @@ impl Request { /// would need preprocessing for the binary format used for info_hash and /// peer_id. pub fn from_http_get_path(path: &str) -> anyhow::Result { + ::log::debug!("request GET path: {}", path); + let mut split_parts= path.splitn(2, '?'); let location = split_parts.next()