From 91811c18c5649363864080248825401100037d83 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 11 Aug 2020 17:48:52 +0530 Subject: [PATCH] cephfs: replace Errorf with ErrorLog in protectSnapshot replace Errorf with ErrorLog in protectSnapshot 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 4e0607bf6..b1d3e3b25 100644 --- a/internal/cephfs/snapshot.go +++ b/internal/cephfs/snapshot.go @@ -162,7 +162,7 @@ func protectSnapshot(ctx context.Context, volOptions *volumeOptions, cr *util.Cr if strings.Contains(err.Error(), ErrSnapProtectionExist.Error()) { return nil } - klog.Errorf(util.Log(ctx, "failed to protect subvolume snapshot %s %s(%s) in fs %s"), string(snapID), string(volID), err, volOptions.FsName) + util.ErrorLog(ctx, "failed to protect subvolume snapshot %s %s(%s) in fs %s", string(snapID), string(volID), err, volOptions.FsName) return err } return nil