🔍 test: print formatted server log at end of graceful shutdown test
Display the full log as a readable summary before cleanup so the complete server lifecycle is visible in test output without needing to preserve the log file manually. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -231,6 +231,12 @@ fi
|
||||
echo ""
|
||||
echo -e "\033[0;32m🎉 GRACEFUL SHUTDOWN TEST PASSED!\033[0m"
|
||||
echo "All required logs are present and in correct order."
|
||||
|
||||
echo ""
|
||||
echo "📋 Full server log:"
|
||||
echo "==============================="
|
||||
cat "$LOG_FILE" | jq -r '"[\(.level | ascii_upcase)] \(.time | tostring) — \(.message)"'
|
||||
echo "==============================="
|
||||
echo ""
|
||||
|
||||
# Clean up
|
||||
|
||||
Reference in New Issue
Block a user