diff --git a/fleetshard/pkg/central/reconciler/reconciler.go b/fleetshard/pkg/central/reconciler/reconciler.go index 0586679aba..db6119a15f 100644 --- a/fleetshard/pkg/central/reconciler/reconciler.go +++ b/fleetshard/pkg/central/reconciler/reconciler.go @@ -104,6 +104,8 @@ func (r *CentralReconciler) Reconcile(ctx context.Context, remoteCentral private return nil, errors.Wrapf(err, "checking if central changed") } + glog.Infof("Start reconcile central %s/%s", remoteCentral.Metadata.Namespace, remoteCentral.Metadata.Name) + remoteCentralName := remoteCentral.Metadata.Name remoteCentralNamespace := remoteCentral.Metadata.Namespace if !changed && r.wantsAuthProvider == r.hasAuthProvider && isRemoteCentralReady(remoteCentral) { diff --git a/fleetshard/pkg/runtime/runtime.go b/fleetshard/pkg/runtime/runtime.go index cbc14484c9..6e2399fcce 100644 --- a/fleetshard/pkg/runtime/runtime.go +++ b/fleetshard/pkg/runtime/runtime.go @@ -139,7 +139,6 @@ func (r *Runtime) Start() error { ctx, cancel := context.WithTimeout(context.Background(), 15*time.Minute) defer cancel() - glog.Infof("Start reconcile central %s/%s", central.Metadata.Namespace, central.Metadata.Name) status, err := reconciler.Reconcile(ctx, central) fleetshardmetrics.MetricsInstance().IncCentralReconcilations() r.handleReconcileResult(central, status, err) diff --git a/pkg/logger/logger_test.go b/pkg/logger/logger_test.go deleted file mode 100644 index e8a326b390..0000000000 --- a/pkg/logger/logger_test.go +++ /dev/null @@ -1,13 +0,0 @@ -package logger - -import ( - "context" - "testing" -) - -func TestIt(t *testing.T) { - log := NewUHCLogger(context.TODO()) - var ct int32 - ct = 25 - log.InfoChangedInt32(&ct, "log message") -}