update logging message

This commit is contained in:
Zelda Hessler 2024-05-21 09:56:17 -05:00
parent a6a3cf18b4
commit 5a9a26bf92
1 changed files with 5 additions and 1 deletions

View File

@ -128,7 +128,11 @@ impl Intercept for RequestCompressionInterceptor {
// we check to see if the data is big enough to make compression worthwhile.
if let Some(known_size) = http_body::Body::size_hint(request.body()).exact() {
if known_size < options.min_compression_size_bytes() as u64 {
tracing::trace!("request body is below minimum size and will not be compressed");
tracing::trace!(
min_compression_size_bytes = options.min_compression_size_bytes(),
known_size,
"request body is below minimum size and will not be compressed"
);
return Ok(());
}
tracing::trace!("compressing non-streaming request body...")