Skip to content

Commit

Permalink
Change errors.Wrapf() to klog.Warningf()
Browse files Browse the repository at this point in the history
Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih committed Apr 6, 2021
1 parent 9cc9a20 commit 18d3585
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/provisioner-localpv/app/backward_compatability.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
mconfig "github.com/openebs/maya/pkg/apis/openebs.io/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
clientset "k8s.io/client-go/kubernetes"
"k8s.io/klog"
)

// This function performs the preupgrade related tasks for 1.0 to 1.1
Expand Down Expand Up @@ -52,7 +53,7 @@ func addLocalPVFinalizerOnAssociatedBDCs(kubeClient *clientset.Clientset) error
// to 'Retain' and the BDCs have been manually removed
// Ref: github.com/openebs/openebs/issues/3363
// TODO: Clean this part of the code up a bit.
errors.Wrapf(err, "Warning: failed to get bdc %v", bdcName)
klog.Warningf("failed to get bdc %v", bdcName)
continue
}

Expand Down

0 comments on commit 18d3585

Please sign in to comment.