mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-02-07 00:17:07 +01:00
print docker logs on fail
This commit is contained in:
parent
b74819cf6c
commit
4fbfd0bae4
2
test.sh
2
test.sh
@ -12,6 +12,8 @@ check_health() {
|
|||||||
echo -n "."
|
echo -n "."
|
||||||
if [ $SECONDS -ge $end ]; then
|
if [ $SECONDS -ge $end ]; then
|
||||||
echo -e "\n$service_name health check timed out after 80 seconds."
|
echo -e "\n$service_name health check timed out after 80 seconds."
|
||||||
|
echo "Printing logs for $service_name:"
|
||||||
|
docker logs "$service_name"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user