diff --git a/models/workflow_execution/workflow_scheduler.go b/models/workflow_execution/workflow_scheduler.go index f41a23b..33743cf 100644 --- a/models/workflow_execution/workflow_scheduler.go +++ b/models/workflow_execution/workflow_scheduler.go @@ -79,8 +79,8 @@ func (ws *WorkflowSchedule) CheckBooking(wfID string, request *tools.APIRequest) return false, wf, []*WorkflowExecution{}, []*booking.Booking{}, err } bookings := []*booking.Booking{} - for _, exec := range execs { - l.Debug().Msg("looping throughs execs") + for i, exec := range execs { + l.Debug().Msg("looping throughs execs : " + string(i)) bookings = append(bookings, exec.Book(ws.UUID, wfID, priceds)...) for _, b := range bookings { meth := request.Caller.URLS[tools.BOOKING][tools.GET] @@ -90,7 +90,7 @@ func (ws *WorkflowSchedule) CheckBooking(wfID string, request *tools.APIRequest) request.Caller.URLS[tools.BOOKING][tools.GET] = meth l.Debug().Msg("Get booking on" + b.DestPeerID) _, err := (&peer.Peer{}).LaunchPeerExecution(b.DestPeerID, b.ResourceID, tools.BOOKING, tools.GET, nil, request.Caller) - l.Debug().Msg("Received response from Get booking on" + b.DestPeerID) + l.Debug().Msg("Received response from Get booking on " + b.DestPeerID) if err != nil { return false, wf, execs, bookings, err }