Open matthew73210 opened 1 month ago
The changes made enhance debugging capabilities and improve the user interface for log management. Key updates include enabling debug mode, adjusting RTSP settings for better network streaming, adding log file reading functionality, creating a new endpoint for log display, optimizing routes, and enhancing the log viewing page.
Files | Change Summary |
---|---|
.gitignore ,internal/conf/config.yaml |
Added conf/config.yaml to ignore list. Enabled debug mode; updated RTSP settings. |
internal/.../fileserver.go |
Imported new libraries; added file reading function. |
internal/.../handlers.go ,internal/.../routes.go |
Added new handler for log file display. Updated routing, optimized endpoint registrations. |
views/logs.html |
Enhanced HTML with new structure and JavaScript for log display. |
🐰✨ In the burrows of code, deep and wide, A rabbit hops with a joyful stride. Logs in place, and debugs alight, Through tunnels of data, into the night. Celebrate the craft, with every byte! 🌟 🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
The webui doesn't have much going on, but the basis is there to read the other logfile too. Might add two links under logs. Or just paste all logs to webui.log and have a single one?
Reworked the webui.log reader. Placed the functions it what seems the right folders. #153 & #138 Couldn't for the life of me get the templating working like settings, just created a work around in logs.html. Pretty much just index.html copied and removed some parts. Need to work on making it dynamic as it depends on refreshing the browser. Being a gitnoob i commited my changes to config, can ignore them.
Might need to be carefull about CSS attacks cus the function reads the webui log and posts as is, if someones puts some code in there ? I think code rabbit will flag it up again.