Skip to content

Replace test logger with logr.Discard() #3041

Closed
@sjberman

Description

@sjberman

Our unit tests instantiate a new logger instance using the zap library when creating various objects. Instead, we can use logr.Discard() to create a logger that discards all logs for unit tests.

Acceptance

  • replace unit test loggers with logr.Discard()

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersstalePull requests/issues with no activitytech-debtShort-term pain, long-term benefit

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions