From 7e8cc41acab0e304f55edc111b275d213107e10f Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 11 Aug 2020 17:47:07 +0530 Subject: [PATCH] cephfs: replace Errorf with ErrorLog in deleteSnapshot replace Errorf with ErrorLog in deleteSnapshot 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 2e49a58cf..5488f85fb 100644 --- a/internal/cephfs/snapshot.go +++ b/internal/cephfs/snapshot.go @@ -89,7 +89,7 @@ func deleteSnapshot(ctx context.Context, volOptions *volumeOptions, cr *util.Cre "ceph", args[:]...) if err != nil { - klog.Errorf(util.Log(ctx, "failed to delete subvolume snapshot %s %s(%s) in fs %s"), string(snapID), string(volID), err, volOptions.FsName) + util.ErrorLog(ctx, "failed to delete subvolume snapshot %s %s(%s) in fs %s", string(snapID), string(volID), err, volOptions.FsName) return err } return nil