cleanup: standardize logging in deleteSnapshot

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-11-30 14:52:13 +01:00 committed by mergify[bot]
parent 294f7b22d4
commit 3433cefaa5

View File

@ -70,7 +70,8 @@ func (vo *volumeOptions) deleteSnapshot(ctx context.Context, snapID, volID volum
err = fsa.ForceRemoveSubVolumeSnapshot(vo.FsName, vo.SubvolumeGroup, string(volID), string(snapID))
if err != nil {
util.ErrorLog(ctx, "failed to delete subvolume snapshot %s %s(%s) in fs %s", string(snapID), string(volID), err, vo.FsName)
util.ErrorLog(ctx, "failed to delete subvolume snapshot %s %s in fs %s: %s",
string(snapID), string(volID), vo.FsName, err)
return err
}
return nil