From c5af315d1943cdb535587c795ef4b4a75d850263 Mon Sep 17 00:00:00 2001 From: yanggang Date: Wed, 19 Jul 2023 16:10:41 +0800 Subject: [PATCH] fix scheduleReconciler log info Signed-off-by: yanggang --- pkg/controller/schedule_controller.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/controller/schedule_controller.go b/pkg/controller/schedule_controller.go index d3268399c8..86386752b5 100644 --- a/pkg/controller/schedule_controller.go +++ b/pkg/controller/schedule_controller.go @@ -199,11 +199,10 @@ func (c *scheduleReconciler) checkIfBackupInNewOrProgress(schedule *velerov1.Sch for _, backup := range backupList.Items { if backup.Status.Phase == velerov1.BackupPhaseNew || backup.Status.Phase == velerov1.BackupPhaseInProgress { + log.Debugf("%s/%s still has backups that are in InProgress or New...", schedule.Namespace, schedule.Name) return true } } - - log.Debugf("Schedule %s/%s still has backups are in InProgress or New state, skip submitting backup to avoid overlap.", schedule.Namespace, schedule.Name) return false }