Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(ci): increase container log capture on timeout (#61272)

mendral-app[bot]47f2b8d88451
diff --git a/bin/wait-for-docker b/bin/wait-for-docker
index 87a375272aa9..0737d89ea645 100755
--- a/bin/wait-for-docker
+++ b/bin/wait-for-docker
@@ -115,8 +115,8 @@ print_service_diagnostics() {
else
echo "Container exists (id=${container_id:0:12}) but readiness state is: $status"
echo ""
- echo "Last 20 lines of container logs:"
- docker logs --tail 20 "$container_id" 2>&1 || true
+ echo "Last 100 lines of container logs:"
+ docker logs --tail 100 "$container_id" 2>&1 || true
echo ""
echo "Health check log:"
docker inspect --format='{{if .State.Health}}{{range .State.Health.Log}}{{.Output}}{{end}}{{else}}no health check configured{{end}}' "$container_id" 2>&1 | tail -5 || true