diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.go | 2 | ||||
| -rw-r--r-- | config/config.json | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go index 0b6c4ff..66533a6 100644 --- a/config/config.go +++ b/config/config.go @@ -3,6 +3,7 @@ package config import ( "encoding/json" "fmt" + "log/slog" "os" "github.com/go-playground/validator/v10" @@ -14,6 +15,7 @@ type Config struct { Output OutputConfig `json:"Output" validate:"required"` MaxConcurrentJobs int `json:"MaxConcurrentJobs" validate:"required,min=1"` ForceRewrite bool `json:"ForceRewrite" validate:"required"` + LogLevel slog.Level `json:"LogLevel" validate:"required"` } type InputConfig struct { diff --git a/config/config.json b/config/config.json index 742949f..acf3e02 100644 --- a/config/config.json +++ b/config/config.json @@ -1,6 +1,7 @@ { "ForceRewrite": false, "MaxConcurrentJobs": 4, + "LogLevel": "info", "Input": { "Storage": { "Type": "b2", |