diff --git a/controllers/reconcile_cli.go b/controllers/reconcile_cli.go index 2647cda44..dc0339a8f 100644 --- a/controllers/reconcile_cli.go +++ b/controllers/reconcile_cli.go @@ -22,7 +22,7 @@ func (r *RabbitmqClusterReconciler) runRabbitmqCLICommandsIfAnnotated(ctx contex return 0, err } if !allReplicasReadyAndUpdated(sts) { - logger.Info("not all replicas ready yet; requeuing request to run RabbitMQ CLI commands") + logger.V(1).Info("not all replicas ready yet; requeuing request to run RabbitMQ CLI commands") return 15 * time.Second, nil } // Retrieve the plugins config map, if it exists. diff --git a/controllers/reconcile_tls.go b/controllers/reconcile_tls.go index ca97039f3..d7020345e 100644 --- a/controllers/reconcile_tls.go +++ b/controllers/reconcile_tls.go @@ -33,7 +33,7 @@ func (r *RabbitmqClusterReconciler) reconcileTLS(ctx context.Context, rabbitmqCl func (r *RabbitmqClusterReconciler) checkTLSSecrets(ctx context.Context, rabbitmqCluster *rabbitmqv1beta1.RabbitmqCluster) error { logger := ctrl.LoggerFrom(ctx) secretName := rabbitmqCluster.Spec.TLS.SecretName - logger.Info("TLS enabled, looking for secret", "secret", secretName) + logger.V(1).Info("TLS enabled, looking for secret", "secret", secretName) // check if secret exists secret := &corev1.Secret{} @@ -57,7 +57,7 @@ func (r *RabbitmqClusterReconciler) checkTLSSecrets(ctx context.Context, rabbitm if rabbitmqCluster.MutualTLSEnabled() { if !rabbitmqCluster.SingleTLSSecret() { secretName := rabbitmqCluster.Spec.TLS.CaSecretName - logger.Info("mutual TLS enabled, looking for CA certificate secret", "secret", secretName) + logger.V(1).Info("mutual TLS enabled, looking for CA certificate secret", "secret", secretName) // check if secret exists secret = &corev1.Secret{} diff --git a/internal/scaling/scaling.go b/internal/scaling/scaling.go index 289d74360..28cdccfe0 100644 --- a/internal/scaling/scaling.go +++ b/internal/scaling/scaling.go @@ -197,7 +197,7 @@ func retryWithInterval(logger logr.Logger, msg string, retry int, interval time. return } time.Sleep(interval) - logger.Info("retrying again", "action", msg, "interval", interval, "attempt", i+1) + logger.V(1).Info("retrying again", "action", msg, "interval", interval, "attempt", i+1) } return fmt.Errorf("failed to %s after %d retries", msg, retry) }