feat(log): display warning in log if body parsing failed

This commit is contained in:
landrigun 2022-11-19 14:52:59 +00:00
parent 91e80cfbf4
commit 1d2924b7ef

View File

@ -195,7 +195,7 @@ impl HTTPRequest {
let body = HTTPBody::try_from(rp.2);
match body {
Ok(v) => request.body = Some(v),
Err(e) => log::error!("{}", e),
Err(e) => log::warn!("{}", e),
}
return Ok(request);