cephfs: replace Errorf with ErrorLog in checkVolExists

replace Errorf with ErrorLog in checkVolExists
for context based logging.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-08-11 17:37:45 +05:30 committed by mergify[bot]
parent abd548e420
commit 98e97baa60

View File

@ -109,7 +109,7 @@ func checkVolExists(ctx context.Context,
if clone.Status.State == cephFSCloneFailed { if clone.Status.State == cephFSCloneFailed {
err = purgeVolume(ctx, volumeID(vid.FsSubvolName), cr, volOptions, true) err = purgeVolume(ctx, volumeID(vid.FsSubvolName), cr, volOptions, true)
if err != nil { if err != nil {
klog.Errorf(util.Log(ctx, "failed to delete volume %s: %v"), vid.FsSubvolName, err) util.ErrorLog(ctx, "failed to delete volume %s: %v", vid.FsSubvolName, err)
return nil, err return nil, err
} }
if pvID != nil { if pvID != nil {