Replace test logger with logr.Discard() #3041
Labels
good first issue
Good for newcomers
stale
Pull requests/issues with no activity
tech-debt
Short-term pain, long-term benefit
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
logr.Discard()
The text was updated successfully, but these errors were encountered: