From 877b987980000ef55caab31f49d4cffbb9b74f62 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Tue, 31 Oct 2023 21:47:29 -0500 Subject: [PATCH] use default logger for default level --- level.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level.go b/level.go index c49ceb4..9b47f13 100644 --- a/level.go +++ b/level.go @@ -59,6 +59,6 @@ func ParseLevel(level string) (Level, error) { case FatalLevel.String(): return FatalLevel, nil default: - return InfoLevel, fmt.Errorf("%w: %q", ErrInvalidLevel, level) + return defaultLogger.GetLevel(), fmt.Errorf("%w: %q", ErrInvalidLevel, level) } }