From 2b7aade289f76656dfc7364cdd13e76269d42578 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 11 Aug 2020 17:53:25 +0530 Subject: [PATCH] cephfs: replace Errorf with ErrorLog in getVolumeRootPathCeph replace Errorf with ErrorLog in getVolumeRootPathCeph 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 fbbb4f77d..d6e9b9790 100644 --- a/internal/cephfs/volume.go +++ b/internal/cephfs/volume.go @@ -74,7 +74,7 @@ func getVolumeRootPathCeph(ctx context.Context, volOptions *volumeOptions, cr *u "--keyfile="+cr.KeyFile) if err != nil { - klog.Errorf(util.Log(ctx, "failed to get the rootpath for the vol %s(%s) stdError %s"), string(volID), err, stderr) + util.ErrorLog(ctx, "failed to get the rootpath for the vol %s(%s) stdError %s", string(volID), err, stderr) if strings.Contains(stderr, ErrVolumeNotFound.Error()) { return "", util.JoinErrors(ErrVolumeNotFound, err) }