From 3433cefaa5452f0576be839101f0e0ce756a62a3 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Mon, 30 Nov 2020 14:52:13 +0100 Subject: [PATCH] cleanup: standardize logging in deleteSnapshot Signed-off-by: Niels de Vos --- internal/cephfs/snapshot.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/cephfs/snapshot.go b/internal/cephfs/snapshot.go index 386d8506f..a9c18675a 100644 --- a/internal/cephfs/snapshot.go +++ b/internal/cephfs/snapshot.go @@ -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