Skip to content

feat: Add Debug logs tab#15

Closed
Chaoscontrol wants to merge 1 commit intodeveloperfromjokela:mainfrom
Chaoscontrol:server-logs
Closed

feat: Add Debug logs tab#15
Chaoscontrol wants to merge 1 commit intodeveloperfromjokela:mainfrom
Chaoscontrol:server-logs

Conversation

@Chaoscontrol
Copy link
Contributor

Adds a new "Debug Logs" tab to the car detail page that displays server logs filtered by VIN, making it easier to debug TCU communication issues from the browser.

Changes

  • api/views.py: Added debug_logs_api endpoint that reads logs/tcuserver.log and returns the last 100 entries matching the car's VIN
  • carwings/urls.py: Added route /api/debug-logs/<vin>/
  • ui/templates/ui/car_detail.html: Added "Debug Logs" tab button in navigation
  • Added tab content with terminal-style log display
  • Added JavaScript for fetching logs with auto-refresh (10s interval when tab is active)
image

Done using AI. Reviewed UI manually but couldn't test if messages are received. Please review before merging.

@Chaoscontrol
Copy link
Contributor Author

Chaoscontrol commented Feb 2, 2026

This is an extra layer of unprocessed messages in case something slips through your programmed messages. Whether it's useful or not to add it, it's up to you to decide. :) I won't get offended if you don't.

@developerfromjokela
Copy link
Owner

developerfromjokela commented Feb 14, 2026

closing this, since the server now reports properly about ID mismatches, the debug log is meant for diagnostics during server setup. discussed in discussions about this and came to this conclusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants