Skip to content

Commit 2efecfc

Browse files
committed
update log
1 parent b938453 commit 2efecfc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/driver/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,14 @@ func (cs *controllerServer) CreateSnapshot(ctx context.Context, req *csi.CreateS
360360
}
361361

362362
func (cs *controllerServer) DeleteSnapshot(ctx context.Context, req *csi.DeleteSnapshotRequest) (*csi.DeleteSnapshotResponse, error) {
363-
klog.V(4).Infof("DeleteSnapshot")
364-
365363
snapshotID := req.GetSnapshotId()
366364

367365
if snapshotID == "" {
368366
return nil, status.Error(codes.InvalidArgument, "Snapshot ID missing in request")
369367
}
370368

369+
klog.V(4).Infof("DeleteSnapshot for snapshotID: %s", snapshotID)
370+
371371
snapshot, err := cs.connector.GetSnapshotByID(ctx, snapshotID)
372372
if errors.Is(err, cloud.ErrNotFound) {
373373
return nil, status.Errorf(codes.NotFound, "Snapshot %v not found", snapshotID)

0 commit comments

Comments
 (0)