Cleanup print statements. Always enable Compression

This commit is contained in:
2026-01-15 13:39:22 +01:00
parent 155e05495e
commit 72248defbf
3 changed files with 7 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ import (
)
const (
DefaultCompressOlderThen = 7
DefaultCompressOlderThan = 7
)
// Retention defines the configuration for job retention policies.
@@ -92,7 +92,7 @@ func initArchiveServices(config json.RawMessage) {
if cfg.Compression > 0 {
RegisterCompressionService(cfg.Compression)
} else {
RegisterCompressionService(DefaultCompressOlderThen)
RegisterCompressionService(DefaultCompressOlderThan)
}
}
@@ -118,6 +118,9 @@ func Start(cronCfg, archiveConfig json.RawMessage) {
if archiveConfig != nil {
initArchiveServices(archiveConfig)
} else {
// Always enable compression
RegisterCompressionService(DefaultCompressOlderThan)
}
lc := auth.Keys.LdapConfig