Commit dcc2e56
Fix debug log capture - separate stdout and stderr streams
Fixed issue where debug logs and network traffic logs were not appearing in CI artifacts:
**Problem:** The workflow was redirecting both stdout and stderr to serial.log
using `2>&1`, which mixed all wokwi-cli diagnostic output (including debug logs
and network traffic) into the serial output file. This prevented separate capture
of debug information.
**Solution:**
1. **Separate output streams**: Changed redirect from `2>&1` to `2>logs/wokwi.log`
- stdout (serial output) → logs/serial.log
- stderr (CLI diagnostics, debug logs, network traffic) → logs/wokwi.log
2. **Display debug logs**: Added section to show wokwi.log content when server is ready
- Shows last 100 lines of debug output including network traffic logs
- Helps verify that debug logging is working correctly
3. **Restore PATH export**: Re-added PATH configuration for wokwi-cli
**Result:** Debug logs and network traffic will now be properly captured in
logs/wokwi.log and included in CI artifacts, enabling diagnosis of AsyncWebServer
connection issues.
Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>1 parent a726141 commit dcc2e56
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
211 | 214 | | |
212 | | - | |
213 | | - | |
214 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
| |||
261 | 264 | | |
262 | 265 | | |
263 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
264 | 270 | | |
265 | 271 | | |
266 | 272 | | |
| |||
0 commit comments