summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2026-09-06 23:53:18 +0200
committerDJ O'Leary <dijitol@proton.me>2026-09-06 23:53:18 +0200
commit142ab324b3c02be49358bb1a38d13b1e6b34d081 (patch)
treeb311fa8d71ae4cc031d6f3e488457d97bc3879e2 /src
parentb8e691f0de5af5e124f7f25a53cfdeef84b049c5 (diff)
refactor(config): set default log level to info
Diffstat (limited to 'src')
-rw-r--r--src/config/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/config.go b/src/config/config.go
index 2e597a1..664bef3 100644
--- a/src/config/config.go
+++ b/src/config/config.go
@@ -74,9 +74,9 @@ func NewConfigFromEnv() (Config, error) {
return Config{}, ErrMissingCardmarketApiBaseURL
}
- lvl := slog.LevelDebug
+ lvl := slog.LevelInfo
appLogLevel := os.Getenv(AppLogLevel)
- if lvlErr := lvl.UnmarshalText([]byte(appLogLevel)); lvlErr != nil {
+ if lvlErr := lvl.UnmarshalText([]byte(appLogLevel)); len(appLogLevel) > 0 && lvlErr != nil {
return Config{}, errors.Join(errors.New("could not unmarshal "+AppLogLevel), lvlErr)
}