mirror of https://github.com/smithy-lang/smithy-rs
update logging message
This commit is contained in:
parent
a6a3cf18b4
commit
5a9a26bf92
|
@ -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...")
|
||||
|
|
Loading…
Reference in New Issue