cephfs: replace Errorf with ErrorLog in resizeVolume

replace Errorf with ErrorLog in resizeVolume
for context based logging.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-08-11 17:56:34 +05:30 committed by mergify[bot]
parent a882c1194b
commit 5a1652e5e8

View File

@ -225,7 +225,7 @@ func resizeVolume(ctx context.Context, volOptions *volumeOptions, cr *util.Crede
}
// Incase the error is other than invalid command return error to the caller.
if !strings.Contains(err.Error(), ErrInvalidCommand.Error()) {
klog.Errorf(util.Log(ctx, "failed to resize subvolume %s(%s) in fs %s"), string(volID), err, volOptions.FsName)
util.ErrorLog(ctx, "failed to resize subvolume %s(%s) in fs %s", string(volID), err, volOptions.FsName)
return err
}
}