Skip to content

feat: Add Debug logs tab#15

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

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.

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.

1 participant