From 4fbfd0bae4dc45bfa2cedb2dc0c7d84590b27ac9 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sun, 31 Dec 2023 19:13:24 +0000 Subject: [PATCH] print docker logs on fail --- test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.sh b/test.sh index 9617ba14..130c6741 100644 --- a/test.sh +++ b/test.sh @@ -12,6 +12,8 @@ check_health() { echo -n "." if [ $SECONDS -ge $end ]; then echo -e "\n$service_name health check timed out after 80 seconds." + echo "Printing logs for $service_name:" + docker logs "$service_name" return 1 fi done