mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-29 02:39:06 +01:00
- Added domain filtering in getDataFromLogFile() to only show log entries for the requested domain - Handles cases where vhost config hasn't been updated and multiple sub-domains log to the same file - Filters out entries from other domains even if they're in the same log file - Added error handling for malformed log entries - Added fallback to master domain log file if child domain log file doesn't exist or is empty This ensures that when viewing logs for a sub-domain, only that sub-domain's logs are displayed, even if the vhost configuration still points to the master domain's log file (which needs to be fixed separately).