From 2ae8c589cb92b32a1c180018bb1aeeb89f713a0c Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Sat, 2 Sep 2023 00:10:00 +0530 Subject: [PATCH] fix: adding helpful logs --- health.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/health.go b/health.go index 9409b26c..499ab965 100644 --- a/health.go +++ b/health.go @@ -667,7 +667,7 @@ func RunOpsWorkflow() (WorkflowHealth, error) { } } - log.Printf("[DEBUG] Execution Result Status: %#v", executionResults.Status) + log.Printf("[DEBUG] Workflow Health execution Result Status: %#v", executionResults.Status) } // 4. Delete workflow @@ -770,7 +770,7 @@ func InitOpsWorkflow() error { // Send the HTTP request using the default HTTP client resp, err := http.DefaultClient.Do(req) if err != nil { - fmt.Println("[ERROR] sending HTTP request:", err) + fmt.Println("[ERROR] sending Ops fetch app HTTP request:", err) return errors.New("Error sending HTTP request: " + err.Error()) } @@ -780,14 +780,14 @@ func InitOpsWorkflow() error { body, err := ioutil.ReadAll(resp.Body) if err != nil { fmt.Println("[ERROR] reading HTTP response body:", err) - return errors.New("Error reading HTTP response body: " + err.Error()) + return errors.New("Error reading HTTP App response response body: " + err.Error()) } // Unmarshal the JSON data into a Workflow instance var workflowData Workflow err = json.Unmarshal(body, &workflowData) if err != nil { - fmt.Println("[ERROR] unmarshalling JSON data:", err) + fmt.Println("[ERROR] unmarshalling Ops workflowData JSON data:", err) return errors.New("Error unmarshalling JSON data: " + err.Error()) }