print to find bug

This commit is contained in:
mr 2024-09-23 10:12:52 +02:00
parent a0dd8e1c42
commit 4f798263b1
2 changed files with 3 additions and 0 deletions

View File

@ -113,6 +113,7 @@ func (p *PeerCache) LaunchPeerExecution(peerID string, dataID string,
func (p *PeerCache) exec(url string, method tools.METHOD, body map[string]interface{}, caller *tools.HTTPCaller) error {
var b []byte
var err error
fmt.Println("executing", url, method, body)
if method == tools.POST { // Execute the POST method if it's a POST method
b, err = caller.CallPost(url, "", body)
}
@ -124,6 +125,7 @@ func (p *PeerCache) exec(url string, method tools.METHOD, body map[string]interf
}
var m map[string]interface{}
json.Unmarshal(b, &m)
fmt.Println("response", err)
if err != nil {
return err
}

View File

@ -144,6 +144,7 @@ func (wfa *workflowMongoAccessor) book(id string, realData *Workflow, execs []*w
ResourceID: dc_id, // set the datacenter id "WHERE"
Executions: execs, // set the executions to book "WHAT"
}).Serialize(), wfa.Caller)
fmt.Println("BOOKING", err)
if err != nil {
return err
}