diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/config.go | 4 |
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) } |
