Skip to content

Commit

Permalink
use default logger for default level
Browse files Browse the repository at this point in the history
  • Loading branch information
dezren39 committed Nov 1, 2023
1 parent 2d70ed6 commit 877b987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion level.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 877b987

Please sign in to comment.