Merge pull request #5299 from whitewindmills/app-failover-logs

cleanup: Print seconds to avoid unreadable minutes
This commit is contained in:
karmada-bot 2024-08-06 10:27:26 +08:00 committed by GitHub
commit 4124ba8513
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ func (c *CRBApplicationFailoverController) Reconcile(ctx context.Context, req co
return controllerruntime.Result{}, err
}
if retryDuration > 0 {
klog.V(4).Infof("Retry to check health status of the workload after %v minutes.", retryDuration.Minutes())
klog.V(4).Infof("Retry to check health status of the workload after %v seconds.", retryDuration.Seconds())
return controllerruntime.Result{RequeueAfter: retryDuration}, nil
}
return controllerruntime.Result{}, nil

View File

@ -84,7 +84,7 @@ func (c *RBApplicationFailoverController) Reconcile(ctx context.Context, req con
return controllerruntime.Result{}, err
}
if retryDuration > 0 {
klog.V(4).Infof("Retry to check health status of the workload after %v minutes.", retryDuration.Minutes())
klog.V(4).Infof("Retry to check health status of the workload after %v seconds.", retryDuration.Seconds())
return controllerruntime.Result{RequeueAfter: retryDuration}, nil
}
return controllerruntime.Result{}, nil