fix: enable LOG_COMPRESSION by default

Refs: https://codeberg.org/forgejo/forgejo/pulls/4924#issuecomment-2165839
This commit is contained in:
Earl Warren 2024-08-11 14:16:48 +02:00
parent d42f28de4e
commit 03b9d50c67
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 3 additions and 3 deletions

View file

@ -58,11 +58,11 @@ func (c logCompression) IsValid() bool {
}
func (c logCompression) IsNone() bool {
return c == "" || strings.ToLower(string(c)) == "none"
return strings.ToLower(string(c)) == "none"
}
func (c logCompression) IsZstd() bool {
return strings.ToLower(string(c)) == "zstd"
return c == "" || strings.ToLower(string(c)) == "zstd"
}
func loadActionsFrom(rootCfg ConfigProvider) error {