cleanup: standardize logging in createSnapshot

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 Madhu Rajanna
parent 7c580af412
commit 5883f244d2

View File

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