fix: modularize maintenance module and enhance logs detection
- Modularize maintenance.py into focused modules (models, logs, database, router)
- Add robust log file detection with multiple fallback locations
- Make log file path configurable via LOG_FILE_PATH environment variable
- Add debug information when logs are not found
- Create test script for maintenance logs functionality
- Update docker-compose.yml with configurable log file path
- Improve error handling and logging throughout maintenance operations
Fixes issue where logs were not displaying on Maintenance page due to
inflexible log file detection. The new implementation tries multiple
common log file locations and provides detailed debug information.
Files changed:
- Split maintenance.py into maintenance/ module
- Added LOG_FILE_PATH to docker-compose.yml
- Created test_maintenance_logs.py for verification
- Added comprehensive documentation