mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +00:00
aquatic_http: debug-log request GET path, use debug mode for bytes read
This commit is contained in:
parent
db51454c6d
commit
829701f4da
2 changed files with 3 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ impl EstablishedConnection {
|
||||||
Ok(bytes_read) => {
|
Ok(bytes_read) => {
|
||||||
self.bytes_read += 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 => {
|
Err(err) if err.kind() == ErrorKind::WouldBlock => {
|
||||||
return Err(RequestReadError::NeedMoreData);
|
return Err(RequestReadError::NeedMoreData);
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@ impl Request {
|
||||||
/// would need preprocessing for the binary format used for info_hash and
|
/// would need preprocessing for the binary format used for info_hash and
|
||||||
/// peer_id.
|
/// peer_id.
|
||||||
pub fn from_http_get_path(path: &str) -> anyhow::Result<Self> {
|
pub fn from_http_get_path(path: &str) -> anyhow::Result<Self> {
|
||||||
|
::log::debug!("request GET path: {}", path);
|
||||||
|
|
||||||
let mut split_parts= path.splitn(2, '?');
|
let mut split_parts= path.splitn(2, '?');
|
||||||
|
|
||||||
let location = split_parts.next()
|
let location = split_parts.next()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue