From a7c261a3943e520f6771d079b780308eb833de84 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 1 Apr 2021 10:27:21 +0200 Subject: [PATCH] logging: correct formatting when reporting error in createVolumeFromSnapshot() Signed-off-by: Niels de Vos --- internal/rbd/controllerserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rbd/controllerserver.go b/internal/rbd/controllerserver.go index da9d9fbec..cf3d5c2ee 100644 --- a/internal/rbd/controllerserver.go +++ b/internal/rbd/controllerserver.go @@ -447,7 +447,7 @@ func (cs *ControllerServer) createVolumeFromSnapshot(ctx context.Context, cr *ut // create clone image and delete snapshot err = rbdVol.cloneRbdImageFromSnapshot(ctx, rbdSnap) if err != nil { - util.ErrorLog(ctx, "failed to clone rbd image %s from snapshot %s: %v", rbdSnap, err) + util.ErrorLog(ctx, "failed to clone rbd image %s from snapshot %s: %v", rbdVol, rbdSnap, err) return err }