print to find bug
This commit is contained in:
		@@ -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 {
 | 
					func (p *PeerCache) exec(url string, method tools.METHOD, body map[string]interface{}, caller *tools.HTTPCaller) error {
 | 
				
			||||||
	var b []byte
 | 
						var b []byte
 | 
				
			||||||
	var err error
 | 
						var err error
 | 
				
			||||||
 | 
						fmt.Println("executing", url, method, body)
 | 
				
			||||||
	if method == tools.POST { // Execute the POST method if it's a POST method
 | 
						if method == tools.POST { // Execute the POST method if it's a POST method
 | 
				
			||||||
		b, err = caller.CallPost(url, "", body)
 | 
							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{}
 | 
						var m map[string]interface{}
 | 
				
			||||||
	json.Unmarshal(b, &m)
 | 
						json.Unmarshal(b, &m)
 | 
				
			||||||
 | 
						fmt.Println("response", err)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return err
 | 
							return err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -144,6 +144,7 @@ func (wfa *workflowMongoAccessor) book(id string, realData *Workflow, execs []*w
 | 
				
			|||||||
						ResourceID: dc_id, // set the datacenter id "WHERE"
 | 
											ResourceID: dc_id, // set the datacenter id "WHERE"
 | 
				
			||||||
						Executions: execs, // set the executions to book "WHAT"
 | 
											Executions: execs, // set the executions to book "WHAT"
 | 
				
			||||||
					}).Serialize(), wfa.Caller)
 | 
										}).Serialize(), wfa.Caller)
 | 
				
			||||||
 | 
									fmt.Println("BOOKING", err)
 | 
				
			||||||
				if err != nil {
 | 
									if err != nil {
 | 
				
			||||||
					return err
 | 
										return err
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user