mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-01-16 01:31:45 +01:00
Cleanup print statements. Always enable Compression
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user