diff options
| author | 2025-07-16 13:16:00 +0700 | |
|---|---|---|
| committer | 2025-07-16 13:18:57 +0700 | |
| commit | 1a4df793e0228d4edbc1a87b1e9f53504a7a1189 (patch) | |
| tree | a7982231335733dc6fa60bd49d1420b6f91670a5 /config/config.go | |
| parent | 2f03ac5ac3a68ad26efc67f78b16dddf8c53b843 (diff) | |
| download | thumbnail-generator-1a4df793e0228d4edbc1a87b1e9f53504a7a1189.tar.gz thumbnail-generator-1a4df793e0228d4edbc1a87b1e9f53504a7a1189.zip | |
feat: signal handling + log level setting
Diffstat (limited to 'config/config.go')
| -rw-r--r-- | config/config.go | 2 |
1 files changed, 2 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 { |