multi: move logcompressor to logging.file.compressor

This is not a breaking change since the logcompressor config option has
not been released yet.
This commit is contained in:
Elle Mouton committed 2024-10-30 13:30:04 +02:00
1 parent 1886d3865b
commit 3adbdbb39a
6 files changed
+37 -15

No files matched your search

+2 -2
View File
@@ -52,9 +52,9 @@ var logCompressors = map[string]string{
Zstd: "zst",
}
// SuportedLogCompressor returns whether or not logCompressor is a supported
// SupportedLogCompressor returns whether or not logCompressor is a supported
// compression algorithm for log files.
func SuportedLogCompressor(logCompressor string) bool {
func SupportedLogCompressor(logCompressor string) bool {
_, ok := logCompressors[logCompressor]
return ok