diff options
Diffstat (limited to 'internal/log/log.go')
-rw-r--r-- | internal/log/log.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/log/log.go b/internal/log/log.go index f5b48b1..a0f5ba7 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -36,8 +36,10 @@ func Fatal(msg string, rest ...any) { func getLevelFromEnv() (zapcore.Level, error) { if str, found := os.LookupEnv("LOG_LEVEL"); found { l, err := zap.ParseAtomicLevel(str) + return l.Level(), err } + return zap.InfoLevel, nil } |