From 98e97baa60a4ec8c00b5495c0a20b420980a1d03 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 11 Aug 2020 17:37:45 +0530 Subject: [PATCH] cephfs: replace Errorf with ErrorLog in checkVolExists replace Errorf with ErrorLog in checkVolExists for context based logging. Signed-off-by: Madhu Rajanna --- internal/cephfs/fsjournal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cephfs/fsjournal.go b/internal/cephfs/fsjournal.go index 210a9bda2..715a56e1a 100644 --- a/internal/cephfs/fsjournal.go +++ b/internal/cephfs/fsjournal.go @@ -109,7 +109,7 @@ func checkVolExists(ctx context.Context, if clone.Status.State == cephFSCloneFailed { err = purgeVolume(ctx, volumeID(vid.FsSubvolName), cr, volOptions, true) if err != nil { - klog.Errorf(util.Log(ctx, "failed to delete volume %s: %v"), vid.FsSubvolName, err) + util.ErrorLog(ctx, "failed to delete volume %s: %v", vid.FsSubvolName, err) return nil, err } if pvID != nil {