Closed matthew73210 closed 1 month ago
The modifications across various files enhance the web application by introducing a feature to display server logs through a new endpoint. This update involves changes to configuration formatting, route handling, log file reading, and updating the user interface to display log content conditionally.
Files | Change Summary |
---|---|
.../conf/config.go |
Adjusted rtsp config formatting by adding a space after url: key. |
.../httpcontroller/logs.go |
Added functions to read log files and handle /logs endpoint requests. |
.../httpcontroller/routes.go |
Introduced a new route for the /logs endpoint. |
views/logs.html |
Updated to display log content or an error message based on log availability. |
logs.go
and routes.go
.🐰✨ A log here, a log there, CodeRabbit hopped with care. Through lines of code, so sleek, A new feature, the geeks will peek! 🌟📜🐾
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?
Going to have a look at why the template wasn't rendering etc..
Adds a couple functions to load webui.log, reads the file and spits it out to the logs.view. Issue #138 Needs stuff added on the view side as the templating is lost. Added route to routes.go Config.go was modified so that the server would run #150
Next step in no particular order : Add option to choose webuiXXX.log files (limit as to not read other files) Sort out templating