From f3d9b8933b132eb19c2e4ca55b4c2c6e06d637f0 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 11 Aug 2020 17:54:15 +0530 Subject: [PATCH] cephfs: replace Errorf with ErrorLog in getSubVolumeInfo replace Errorf with ErrorLog in getSubVolumeInfo for context based logging. Signed-off-by: Madhu Rajanna --- internal/cephfs/volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cephfs/volume.go b/internal/cephfs/volume.go index d6e9b9790..091e0ce9c 100644 --- a/internal/cephfs/volume.go +++ b/internal/cephfs/volume.go @@ -102,7 +102,7 @@ func getSubVolumeInfo(ctx context.Context, volOptions *volumeOptions, cr *util.C "-n", cephEntityClientPrefix+cr.ID, "--keyfile="+cr.KeyFile) if err != nil { - klog.Errorf(util.Log(ctx, "failed to get subvolume info for the vol %s(%s)"), string(volID), err) + util.ErrorLog(ctx, "failed to get subvolume info for the vol %s(%s)", string(volID), err) if strings.HasPrefix(err.Error(), ErrVolumeNotFound.Error()) { return info, ErrVolumeNotFound }