Skip to content

Commit

Permalink
fix(unit): allow logrus log level to be adjusted
Browse files Browse the repository at this point in the history
Using the standard logger allows a unit test to set the desired log
level via `log.SetLevel(log.DebugLevel)`.
  • Loading branch information
jpeeler committed Jul 25, 2019
1 parent c70434f commit d899fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/operators/catalog/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
}
Expand Down

0 comments on commit d899fe5

Please sign in to comment.