diff --git a/controllers/ibporderer/ibporderer_controller_test.go b/controllers/ibporderer/ibporderer_controller_test.go index 14480745..20734c11 100644 --- a/controllers/ibporderer/ibporderer_controller_test.go +++ b/controllers/ibporderer/ibporderer_controller_test.go @@ -38,6 +38,7 @@ import ( config "github.com/IBM-Blockchain/fabric-operator/pkg/initializer/orderer/config/v1" "github.com/IBM-Blockchain/fabric-operator/pkg/offering/common" "github.com/IBM-Blockchain/fabric-operator/pkg/operatorerrors" + "github.com/IBM-Blockchain/fabric-operator/pkg/util" corev1 "k8s.io/api/core/v1" k8serror "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -125,6 +126,8 @@ var _ = Describe("ReconcileIBPOrderer", func() { mutex: &sync.Mutex{}, Config: &opconfig.Config{}, } + zaplogger, _ := util.SetupLogging("DEBUG") + reconciler.Config.Logger = zaplogger request = reconcile.Request{ NamespacedName: types.NamespacedName{ Namespace: "test-namespace", diff --git a/controllers/ibppeer/ibppeer_controller_test.go b/controllers/ibppeer/ibppeer_controller_test.go index 5b45c59c..c08d8fdc 100644 --- a/controllers/ibppeer/ibppeer_controller_test.go +++ b/controllers/ibppeer/ibppeer_controller_test.go @@ -34,6 +34,7 @@ import ( "github.com/IBM-Blockchain/fabric-operator/controllers/mocks" "github.com/IBM-Blockchain/fabric-operator/pkg/offering/common" "github.com/IBM-Blockchain/fabric-operator/pkg/operatorerrors" + "github.com/IBM-Blockchain/fabric-operator/pkg/util" corev1 "k8s.io/api/core/v1" k8serror "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -128,6 +129,8 @@ var _ = Describe("ReconcileIBPPeer", func() { mutex: &sync.Mutex{}, Config: &opconfig.Config{}, } + zaplogger, _ := util.SetupLogging("DEBUG") + reconciler.Config.Logger = zaplogger request = reconcile.Request{ NamespacedName: types.NamespacedName{ Namespace: "test-namespace",