Skip to content

DefautLoger will visit nil pointer if it set nil logger #1739

@mappjzc

Description

@mappjzc

Describe the bug

image
image
image

To Reproduce

Steps to reproduce the behavior:

  1. create a NewDefaultLogger with nil logger.
  2. use logger.Info

Expected behavior

nil logger with no print but not panic.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

type/bugThis issue is a bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions