cephfs: replace Errorf with ErrorLog in unprotectSnapshot

replace Errorf with ErrorLog in unprotectSnapshot
for context based logging.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-08-11 17:49:36 +05:30 committed by mergify[bot]
parent 91811c18c5
commit 841a3713f5

View File

@ -195,7 +195,7 @@ func unprotectSnapshot(ctx context.Context, volOptions *volumeOptions, cr *util.
if strings.Contains(err.Error(), ErrSnapProtectionExist.Error()) {
return nil
}
klog.Errorf(util.Log(ctx, "failed to unprotect subvolume snapshot %s %s(%s) in fs %s"), string(snapID), string(volID), err, volOptions.FsName)
util.ErrorLog(ctx, "failed to unprotect subvolume snapshot %s %s(%s) in fs %s", string(snapID), string(volID), err, volOptions.FsName)
return err
}
return nil