From 4f798263b1eadb8f67700b9efb080828d6dd5a03 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 23 Sep 2024 10:12:52 +0200 Subject: [PATCH] print to find bug --- models/peer/peer_cache.go | 2 ++ models/workflow/workflow_mongo_accessor.go | 1 + 2 files changed, 3 insertions(+) diff --git a/models/peer/peer_cache.go b/models/peer/peer_cache.go index 6efffb7..7e4f44f 100644 --- a/models/peer/peer_cache.go +++ b/models/peer/peer_cache.go @@ -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 } diff --git a/models/workflow/workflow_mongo_accessor.go b/models/workflow/workflow_mongo_accessor.go index f6e3aff..8fa1ea1 100644 --- a/models/workflow/workflow_mongo_accessor.go +++ b/models/workflow/workflow_mongo_accessor.go @@ -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 }