From 4af534f5a4251c43231981d9e259090d497bee4b Mon Sep 17 00:00:00 2001 From: Jeff Peeler Date: Thu, 25 Jul 2019 18:24:26 -0400 Subject: [PATCH] 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)`. --- pkg/controller/operators/catalog/operator_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/operators/catalog/operator_test.go b/pkg/controller/operators/catalog/operator_test.go index c5fe6aa55d..d0f4d0800a 100644 --- a/pkg/controller/operators/catalog/operator_test.go +++ b/pkg/controller/operators/catalog/operator_test.go @@ -704,7 +704,7 @@ func withFakeClientOptions(options ...clientfake.Option) fakeOperatorOption { func NewFakeOperator(ctx context.Context, namespace string, watchedNamespaces []string, fakeOptions ...fakeOperatorOption) (*Operator, error) { // Apply options to default config config := &fakeOperatorConfig{ - logger: logrus.New(), + logger: logrus.StandardLogger(), clock: utilclock.RealClock{}, resolver: &fakes.FakeResolver{}, }