From 7eefadf1eb3d9ed7d7cefec0d0d32025a349c3ce Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 11 Aug 2020 17:08:51 +0530 Subject: [PATCH] cephfs: replace klog.Warning with util.WarningLog in DeleteVolume replace klog.Warning with util.WarningLog in DeleteVolume for context based logging. Signed-off-by: Madhu Rajanna --- internal/cephfs/controllerserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cephfs/controllerserver.go b/internal/cephfs/controllerserver.go index 4d48eec43..6a21147d1 100644 --- a/internal/cephfs/controllerserver.go +++ b/internal/cephfs/controllerserver.go @@ -296,7 +296,7 @@ func (cs *ControllerServer) DeleteVolume(ctx context.Context, req *csi.DeleteVol // if error is ErrPoolNotFound, the pool is already deleted we dont // need to worry about deleting subvolume or omap data, return success if errors.Is(err, util.ErrPoolNotFound) { - klog.Warningf(util.Log(ctx, "failed to get backend volume for %s: %v"), string(volID), err) + util.WarningLog(ctx, "failed to get backend volume for %s: %v", string(volID), err) return &csi.DeleteVolumeResponse{}, nil } // if error is ErrKeyNotFound, then a previous attempt at deletion was complete