From 00438d7b9ced29068783e891e524208f2bdc1372 Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Wed, 22 May 2024 21:12:37 +0530 Subject: [PATCH] fix: debugging 502s in pinging (2) --- .github/workflows/quick-testing.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/quick-testing.yml b/.github/workflows/quick-testing.yml index 2160022c..ae194436 100644 --- a/.github/workflows/quick-testing.yml +++ b/.github/workflows/quick-testing.yml @@ -61,13 +61,13 @@ jobs: exit 0 elif [ "$STATUS_CODE" -ne 502 ]; then echo "User registration failed with status code $STATUS_CODE." - echo "Fetching last 30 lines of logs from container $CONTAINER_NAME..." - logs_output=$(docker logs --tail 30 "$CONTAINER_NAME") - echo "$logs_output" exit 1 fi - echo "Received status code 502. Retrying in $RETRY_INTERVAL seconds... ($i/$MAX_RETRIES)" + echo "Received status code $STATUS_CODE. Retrying in $RETRY_INTERVAL seconds... ($i/$MAX_RETRIES)" + echo "Fetching last 30 lines of logs from container $CONTAINER_NAME..." + logs_output=$(docker logs --tail 30 "$CONTAINER_NAME") + echo "$logs_output" sleep $RETRY_INTERVAL done