From 3a7252c563c89adf7d616e82f51aab0a67a681c6 Mon Sep 17 00:00:00 2001 From: jiahui Date: Sat, 12 Oct 2024 16:08:33 +0800 Subject: [PATCH] fix the payment controller start error --- controllers/account/controllers/payment_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/account/controllers/payment_controller.go b/controllers/account/controllers/payment_controller.go index 85e6eac7717..1a016bc44a7 100644 --- a/controllers/account/controllers/payment_controller.go +++ b/controllers/account/controllers/payment_controller.go @@ -98,7 +98,7 @@ func (r *PaymentReconciler) SetupWithManager(mgr ctrl.Manager) (err error) { return fmt.Errorf("get account config failed: %w", err) } if len(r.accountConfig.DefaultDiscountSteps) == 0 { - return fmt.Errorf("default discount steps is empty") + r.Logger.Info("default discount steps is empty, use default value") } r.Logger.V(1).Info("account config", "config", r.accountConfig) r.Logger.V(1).Info("reconcile duration", "reconcileDuration", r.reconcileDuration, "createDuration", r.createDuration)