mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-03 11:45:20 +00:00
Use '"' rather than '`' in the log to avoid unexpected new line
Use '"' rather than '`' in the log to avoid unexpected new line Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This commit is contained in:
@@ -116,8 +116,7 @@ func (nt *nsTracker) init(
|
|||||||
for _, namespace := range unstructuredNSs {
|
for _, namespace := range unstructuredNSs {
|
||||||
if nt.singleLabelSelector != nil &&
|
if nt.singleLabelSelector != nil &&
|
||||||
nt.singleLabelSelector.Matches(labels.Set(namespace.GetLabels())) {
|
nt.singleLabelSelector.Matches(labels.Set(namespace.GetLabels())) {
|
||||||
nt.logger.Debugf(`Track namespace %s,
|
nt.logger.Debugf("Track namespace %s, because its labels match backup LabelSelector.",
|
||||||
because its labels match backup LabelSelector.`,
|
|
||||||
namespace.GetName(),
|
namespace.GetName(),
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -128,8 +127,7 @@ func (nt *nsTracker) init(
|
|||||||
if len(nt.orLabelSelector) > 0 {
|
if len(nt.orLabelSelector) > 0 {
|
||||||
for _, selector := range nt.orLabelSelector {
|
for _, selector := range nt.orLabelSelector {
|
||||||
if selector.Matches(labels.Set(namespace.GetLabels())) {
|
if selector.Matches(labels.Set(namespace.GetLabels())) {
|
||||||
nt.logger.Debugf(`Track namespace %s",
|
nt.logger.Debugf("Track namespace %s, because its labels match the backup OrLabelSelector.",
|
||||||
"because its labels match the backup OrLabelSelector.`,
|
|
||||||
namespace.GetName(),
|
namespace.GetName(),
|
||||||
)
|
)
|
||||||
nt.track(namespace.GetName())
|
nt.track(namespace.GetName())
|
||||||
@@ -148,8 +146,7 @@ func (nt *nsTracker) init(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if nt.namespaceFilter.ShouldInclude(namespace.GetName()) {
|
if nt.namespaceFilter.ShouldInclude(namespace.GetName()) {
|
||||||
nt.logger.Debugf(`Track namespace %s,
|
nt.logger.Debugf("Track namespace %s, because its name match the backup namespace filter.",
|
||||||
because its name match the backup namespace filter.`,
|
|
||||||
namespace.GetName(),
|
namespace.GetName(),
|
||||||
)
|
)
|
||||||
nt.track(namespace.GetName())
|
nt.track(namespace.GetName())
|
||||||
|
|||||||
@@ -424,8 +424,7 @@ func GetVolumeSnapshotClassForStorageClass(
|
|||||||
return &vsClass, nil
|
return &vsClass, nil
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf(
|
return nil, fmt.Errorf(
|
||||||
`failed to get VolumeSnapshotClass for provisioner %s,
|
"failed to get VolumeSnapshotClass for provisioner %s, ensure that the desired VolumeSnapshot class has the %s label",
|
||||||
ensure that the desired VolumeSnapshot class has the %s label`,
|
|
||||||
provisioner, velerov1api.VolumeSnapshotClassSelectorLabel)
|
provisioner, velerov1api.VolumeSnapshotClassSelectorLabel)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user