Increment logging for item backupper (#1904)

Signed-off-by: Christopher Phillips <cphillips918@gmail.com>
This commit is contained in:
Christopher Angelo Phillips
2019-09-27 13:17:54 -07:00
committed by KubeKween
parent 2d845683a2
commit ca6c0a5a3d
2 changed files with 3 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
Add check to update resource field during backupItem
+2 -3
View File
@@ -119,9 +119,8 @@ func (ib *defaultItemBackupper) backupItem(logger logrus.FieldLogger, obj runtim
name := metadata.GetName()
log := logger.WithField("name", name)
if namespace != "" {
log = log.WithField("namespace", namespace)
}
log = log.WithField("resource", groupResource)
log = log.WithField("namespace", namespace)
if metadata.GetLabels()["velero.io/exclude-from-backup"] == "true" {
log.Info("Excluding item because it has label velero.io/exclude-from-backup=true")