From 841a3713f517ec2afe02618e52262d31fdedd286 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 11 Aug 2020 17:49:36 +0530 Subject: [PATCH] cephfs: replace Errorf with ErrorLog in unprotectSnapshot replace Errorf with ErrorLog in unprotectSnapshot for context based logging. Signed-off-by: Madhu Rajanna --- internal/cephfs/snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cephfs/snapshot.go b/internal/cephfs/snapshot.go index b1d3e3b25..a5284463f 100644 --- a/internal/cephfs/snapshot.go +++ b/internal/cephfs/snapshot.go @@ -195,7 +195,7 @@ func unprotectSnapshot(ctx context.Context, volOptions *volumeOptions, cr *util. if strings.Contains(err.Error(), ErrSnapProtectionExist.Error()) { return nil } - klog.Errorf(util.Log(ctx, "failed to unprotect subvolume snapshot %s %s(%s) in fs %s"), string(snapID), string(volID), err, volOptions.FsName) + util.ErrorLog(ctx, "failed to unprotect subvolume snapshot %s %s(%s) in fs %s", string(snapID), string(volID), err, volOptions.FsName) return err } return nil