Skip to content

Commit 2d7424e

Browse files
committed
chore: update brotli default compression level to middle
1 parent 23508e4 commit 2d7424e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tracing-appender/src/rolling/compress.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ impl Default for Compression {
3434
} else if #[cfg(feature = "brotli")] {
3535
Self::Brotli {
3636
buffer_size: 4096,
37-
params: BrotliEncoderParams::default(),
37+
params: BrotliEncoderParams {
38+
quality: 6, // https://github.com/google/ngx_brotli?tab=readme-ov-file#brotli_comp_level
39+
..BrotliEncoderParams::default()
40+
},
3841
}
3942
} else {
4043
Self::None

0 commit comments

Comments
 (0)