From 2b4db7480d68c22540a69972f0d584fe66bccb97 Mon Sep 17 00:00:00 2001 From: Jonathan Tong Date: Mon, 13 Jul 2020 16:00:34 -0400 Subject: [PATCH] Removed log messages used for testing --- cmd/ads/ads.go | 1 - pkg/smi/client.go | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/ads/ads.go b/cmd/ads/ads.go index 6f5fc80d10..09dceb6540 100644 --- a/cmd/ads/ads.go +++ b/cmd/ads/ads.go @@ -124,7 +124,6 @@ func main() { namespaceController := namespace.NewNamespaceController(kubeConfig, meshName, stop) meshSpec := smi.NewMeshSpecClient(kubeConfig, osmNamespace, namespaceController, stop) - log.Info().Msgf("Backpressure enabled: %v\n", optionalFeatures.BackpressureEnabled) certManager, certDebugger := certManagers[certificateManagerKind(*certManagerKind)](kubeConfig, enableDebugServer) diff --git a/pkg/smi/client.go b/pkg/smi/client.go index 2e1562fdf5..8465ef1b66 100644 --- a/pkg/smi/client.go +++ b/pkg/smi/client.go @@ -7,7 +7,6 @@ import ( backpressure "github.com/open-service-mesh/osm/experimental/pkg/apis/policy/v1alpha1" backpressureClient "github.com/open-service-mesh/osm/experimental/pkg/client/clientset/versioned" backpressureInformers "github.com/open-service-mesh/osm/experimental/pkg/client/informers/externalversions" - target "github.com/servicemeshinterface/smi-sdk-go/pkg/apis/access/v1alpha1" spec "github.com/servicemeshinterface/smi-sdk-go/pkg/apis/specs/v1alpha2" split "github.com/servicemeshinterface/smi-sdk-go/pkg/apis/split/v1alpha2" @@ -125,7 +124,7 @@ func newSMIClient(kubeClient *kubernetes.Clientset, smiTrafficSplitClient *smiTr TrafficSpec: informerCollection.TrafficSpec.GetStore(), TrafficTarget: informerCollection.TrafficTarget.GetStore(), } - log.Info().Msgf("Backpressure enabled in client.go?: %v", featureflags.IsBackpressureEnabled()) + if featureflags.IsBackpressureEnabled() { informerCollection.Backpressure = backPressureInformerFactory.Policy().V1alpha1().Backpressures().Informer() cacheCollection.Backpressure = informerCollection.Backpressure.GetStore()