From f44014f53f73d3ba76e8639e259f275fb431587c Mon Sep 17 00:00:00 2001
From: Harsha Muralidhar <hmuralidhar@gitlab.com>
Date: Thu, 5 Oct 2023 16:06:57 +0000
Subject: [PATCH] Add success logging for health check script in gdk pipeline

---
 scripts/utils.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/utils.sh b/scripts/utils.sh
index 13a051e2b58a..4a5e74353f66 100644
--- a/scripts/utils.sh
+++ b/scripts/utils.sh
@@ -14,7 +14,7 @@ function retry_times_sleep() {
 
   for i in $(seq "${number_of_retries}" -1 1); do
     sleep "$sleep_seconds"s
-    echo "[$(date '+%H:%M:%S')] Retrying $i..."
+    echo "[$(date '+%H:%M:%S')] Retry attempts left: $i..."
     if eval "$@"; then
       return 0
     fi
@@ -54,6 +54,7 @@ function test_url() {
   status=$(eval "${cmd}")
 
   if [[ $status == "200" ]]; then
+    echo -e "\n[$(date '+%H:%M:%S')] Curl to $url successful with 200 response"
     return 0
   else
     # We display the error in the job to allow for better debugging
-- 
GitLab