🐛 fix: emit all config-loading logs in correct JSON format from the start #16

Merged
arcodange merged 5 commits from fix/json-logging-first-message into main 2026-04-12 23:28:36 +02:00
Showing only changes of commit 165e082eb9 - Show all commits

View File

@@ -75,7 +75,8 @@ fi
kill -TERM "$SERVER_PID"
# Brief yield so the signal handler runs and CancelableContext.Cancel() fires
sleep 0.2
curl -s http://localhost:8080/api/ready > /dev/null 2>&1 || true
READY_DURING_SHUTDOWN=$(curl -s -w "\n[HTTP %{http_code}]" http://localhost:8080/api/ready 2>&1 || echo "[connection refused]")
echo "Readiness during shutdown: $READY_DURING_SHUTDOWN"
# Wait for the process to exit cleanly (up to 30s) without sending another signal
echo "Waiting for server to exit..."