Skip to content

Commit 4af534f

Browse files
author
Jeff Peeler
committed
fix(unit): allow logrus log level to be adjusted
Using the standard logger allows a unit test to set the desired log level via `log.SetLevel(log.DebugLevel)`.
1 parent 7f6da18 commit 4af534f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/operators/catalog/operator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ func withFakeClientOptions(options ...clientfake.Option) fakeOperatorOption {
704704
func NewFakeOperator(ctx context.Context, namespace string, watchedNamespaces []string, fakeOptions ...fakeOperatorOption) (*Operator, error) {
705705
// Apply options to default config
706706
config := &fakeOperatorConfig{
707-
logger: logrus.New(),
707+
logger: logrus.StandardLogger(),
708708
clock: utilclock.RealClock{},
709709
resolver: &fakes.FakeResolver{},
710710
}

0 commit comments

Comments
 (0)