From de3b3bc471e8c8b58b734ae80bd666d072548110 Mon Sep 17 00:00:00 2001 From: Ashmeen Kaur <57195160+ashmeenkaur@users.noreply.github.com> Date: Fri, 1 Dec 2023 16:07:49 +0530 Subject: [PATCH] make log compression on by default (#1537) --- internal/config/mount_config.go | 2 +- internal/config/yaml_parser_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/mount_config.go b/internal/config/mount_config.go index 73f062ed4a..6d90037bee 100644 --- a/internal/config/mount_config.go +++ b/internal/config/mount_config.go @@ -18,7 +18,7 @@ const ( // Default log rotation config values. defaultMaxFileSizeMB = 512 defaultBackupFileCount = 10 - defaultCompress = false + defaultCompress = true ) type WriteConfig struct { diff --git a/internal/config/yaml_parser_test.go b/internal/config/yaml_parser_test.go index 37aa0464f8..bfd344d372 100644 --- a/internal/config/yaml_parser_test.go +++ b/internal/config/yaml_parser_test.go @@ -37,7 +37,7 @@ func validateDefaultConfig(mountConfig *MountConfig) { ExpectEq("", mountConfig.LogConfig.FilePath) ExpectEq(512, mountConfig.LogConfig.LogRotateConfig.MaxFileSizeMB) ExpectEq(10, mountConfig.LogConfig.LogRotateConfig.BackupFileCount) - ExpectEq(false, mountConfig.LogConfig.LogRotateConfig.Compress) + ExpectEq(true, mountConfig.LogConfig.LogRotateConfig.Compress) } func (t *YamlParserTest) TestReadConfigFile_EmptyFileName() {