cephfs: replace Errorf with ErrorLog in createSnapshot

replace Errorf with ErrorLog in createSnapshot
for context based logging.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-08-11 17:46:18 +05:30 committed by mergify[bot]
parent 57454cf379
commit 7f00fa66f4

View File

@ -60,7 +60,7 @@ func createSnapshot(ctx context.Context, volOptions *volumeOptions, cr *util.Cre
"ceph",
args[:]...)
if err != nil {
klog.Errorf(util.Log(ctx, "failed to create subvolume snapshot %s %s(%s) in fs %s"), string(snapID), string(volID), err, volOptions.FsName)
util.ErrorLog(ctx, "failed to create subvolume snapshot %s %s(%s) in fs %s", string(snapID), string(volID), err, volOptions.FsName)
return err
}
return nil