Skip to content

Commit

Permalink
Log temp dir
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cameron <[email protected]>
  • Loading branch information
JasonLovesDoggo committed Nov 3, 2024
1 parent 425a57f commit 23ee537
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ func validateConfig(config *Config) error {
config.TempDir = dir
}

if config.Compression.Format == "" {
// check if ompression format is supported
if config.Compression.Format != "zlib" && config.Compression.Format != "gzip" && config.Compression.
Format != "zstd" || config.Compression.Format == "" {
fmt.Println("Compression format not supported. Please use zlib, gzip or zstd. Defaulting to zstd.")
config.Compression.Format = "zstd"
}

fmt.Printf("Temp dir: %s\n", config.TempDir)
return nil
}

0 comments on commit 23ee537

Please sign in to comment.