From 66413e15bb681ab11ce66d8b7fca731acd9dffea Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 6 Nov 2024 15:42:06 +0100 Subject: [PATCH] tooling --- tools/api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/api.go b/tools/api.go index f697b1d..2ae6320 100644 --- a/tools/api.go +++ b/tools/api.go @@ -3,6 +3,7 @@ package tools import ( "encoding/json" "errors" + "fmt" "strings" "cloud.o-forge.io/core/oc-lib/config" @@ -136,11 +137,13 @@ func (a *API) CheckRemoteAPIs(apis []DataType) (State, map[string]string, error) for _, api := range apis { // Check the state of each remote API in the list var resp APIStatusResponse b, err := caller.CallGet(api.API()+":8080", "/oc/version/status") // Call the status endpoint of the remote API (standard OC status endpoint) + fmt.Println(err) if err != nil { state = REDUCED_SERVICE // If a remote API is not reachable, return reduced service continue } json.Unmarshal(b, &resp) + fmt.Println(string(b)) if resp.Data == nil { // state = REDUCED_SERVICE // If the response is empty, return reduced service continue