From 71a6dc3ba83af1769ff1bcd4ecce466ceb8257fd Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 11 Aug 2020 17:21:37 +0530 Subject: [PATCH] cephfs: replace Errorf with util.ErrorLog in getCloneInfo replace Errorf with util.ErrorLog in getCloneInfo for context based logging. Signed-off-by: Madhu Rajanna --- internal/cephfs/clone.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/cephfs/clone.go b/internal/cephfs/clone.go index e44b4a869..48873bd62 100644 --- a/internal/cephfs/clone.go +++ b/internal/cephfs/clone.go @@ -22,8 +22,6 @@ import ( "fmt" "github.com/ceph/ceph-csi/internal/util" - - klog "k8s.io/klog/v2" ) const ( @@ -219,7 +217,7 @@ func getCloneInfo(ctx context.Context, volOptions *volumeOptions, cr *util.Crede "ceph", args[:]...) if err != nil { - klog.Errorf(util.Log(ctx, "failed to get subvolume clone info %s(%s) in fs %s"), string(volID), err, volOptions.FsName) + util.ErrorLog(ctx, "failed to get subvolume clone info %s(%s) in fs %s", string(volID), err, volOptions.FsName) return clone, err } return clone, nil