From 95c674b23ab07dfb0381610926e39dfbc9e375c9 Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Sun, 2 Apr 2023 23:27:51 +0800 Subject: [PATCH] Refine the log message when BIA is skipped The log message should be clarified, otherwise when a user chooses to do the backup via podvolme there will be confusing logs, but actually it's just skipping the BIA for CSI plugin. Signed-off-by: Daniel Jiang --- pkg/backup/item_backupper.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/backup/item_backupper.go b/pkg/backup/item_backupper.go index 8e9d94882..1dec2b3c2 100644 --- a/pkg/backup/item_backupper.go +++ b/pkg/backup/item_backupper.go @@ -323,11 +323,11 @@ func (ib *itemBackupper) executeActions( continue } log.Info("Executing custom action") - - if act, err := ib.getMatchAction(obj, groupResource, action.Name()); err != nil { + actionName := action.Name() + if act, err := ib.getMatchAction(obj, groupResource, actionName); err != nil { return nil, itemFiles, errors.WithStack(err) } else if act != nil && act.Type == resourcepolicies.Skip { - log.Infof("skip snapshot of pvc %s/%s bound pv for the matched resource policies", namespace, name) + log.Infof("Skip executing Backup Item Action: %s of resource %s: %s/%s for the matched resource policies", actionName, groupResource, namespace, name) continue }