[PR #4] [MERGED] Replace the function of sending panel logs with downloading log file #5

Closed
opened 2026-08-01 12:39:50 +02:00 by thegame_1980 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Vateron-Media/XC_VM/pull/4
Author: @Divarion-D
Created: 8/29/2025
Status: ✅ Merged
Merged: 8/29/2025
Merged by: @Divarion-D

Base: main ← Head: feature/download-panel-log


📝 Commits (2)

  • 89db467 Replace the function of sending panel logs with downloading the panel log file
  • fb85c55 Correction of text for PR

📊 Changes

4 files changed (+151 additions, -48 deletions)

View changed files

📝 src/admin/api.php (+3 -3)
📝 src/admin/panel_logs.php (+78 -5)
📝 src/admin/topbar.php (+1 -1)
📝 src/includes/xc_vm.php (+69 -39)

📄 Description

Сводка от Sourcery

Изменение обработки логов панели с удаленной отправки на локальную загрузку путем введения нового метода downloadPanelLogs, обновления конечной точки API и модификации административного интерфейса для разрешения загрузки логов в виде JSON-файла.

Новые возможности:

  • Добавлена возможность загружать логи панели в виде JSON-файла из административного интерфейса

Улучшения:

  • Замена удаленной отправки логов панели механизмом локальной загрузки, который извлекает, очищает, форматирует (включая удобочитаемые метки времени) и усекает таблицу логов
  • Рефакторинг действия API с send_panel_logs на download_panel_logs для возврата структурированных данных логов вместе с версией системы
Original summary in English

Summary by Sourcery

Switch panel log handling from remote submission to local download by introducing a new downloadPanelLogs method, updating the API endpoint, and modifying the admin UI to allow downloading logs as a JSON file.

New Features:

  • Add ability to download panel logs as a JSON file from the admin interface

Enhancements:

  • Replace remote submission of panel logs with a local download mechanism that fetches, sanitizes, formats (including human-readable timestamps), and truncates the logs table
  • Refactor API action from send_panel_logs to download_panel_logs to return structured log data along with system version

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Vateron-Media/XC_VM/pull/4 **Author:** [@Divarion-D](https://github.com/Divarion-D) **Created:** 8/29/2025 **Status:** ✅ Merged **Merged:** 8/29/2025 **Merged by:** [@Divarion-D](https://github.com/Divarion-D) **Base:** `main` ← **Head:** `feature/download-panel-log` --- ### 📝 Commits (2) - [`89db467`](https://github.com/Vateron-Media/XC_VM/commit/89db467a631a8619c39053bfeda63d6b79e92141) Replace the function of sending panel logs with downloading the panel log file - [`fb85c55`](https://github.com/Vateron-Media/XC_VM/commit/fb85c557dab67d3ea0ac59b6c4b436baa0cd699b) Correction of text for PR ### 📊 Changes **4 files changed** (+151 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `src/admin/api.php` (+3 -3) 📝 `src/admin/panel_logs.php` (+78 -5) 📝 `src/admin/topbar.php` (+1 -1) 📝 `src/includes/xc_vm.php` (+69 -39) </details> ### 📄 Description ## Сводка от Sourcery Изменение обработки логов панели с удаленной отправки на локальную загрузку путем введения нового метода `downloadPanelLogs`, обновления конечной точки API и модификации административного интерфейса для разрешения загрузки логов в виде JSON-файла. Новые возможности: - Добавлена возможность загружать логи панели в виде JSON-файла из административного интерфейса Улучшения: - Замена удаленной отправки логов панели механизмом локальной загрузки, который извлекает, очищает, форматирует (включая удобочитаемые метки времени) и усекает таблицу логов - Рефакторинг действия API с `send_panel_logs` на `download_panel_logs` для возврата структурированных данных логов вместе с версией системы <details> <summary>Original summary in English</summary> ## Summary by Sourcery Switch panel log handling from remote submission to local download by introducing a new downloadPanelLogs method, updating the API endpoint, and modifying the admin UI to allow downloading logs as a JSON file. New Features: - Add ability to download panel logs as a JSON file from the admin interface Enhancements: - Replace remote submission of panel logs with a local download mechanism that fetches, sanitizes, formats (including human-readable timestamps), and truncates the logs table - Refactor API action from send_panel_logs to download_panel_logs to return structured log data along with system version </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
thegame_1980 added the pull-request label 2026-08-01 12:39:50 +02:00
thegame_1980 changed title from [PR #4] [MERGED] Replace the function of sending panel logs with downloading log file to [PR #4] Replace the function of sending panel logs with downloading log file 2026-10-06 12:02:38 +02:00
thegame_1980 changed title from [PR #4] Replace the function of sending panel logs with downloading log file to [PR #4] [MERGED] Replace the function of sending panel logs with downloading log file 2026-10-06 20:02:47 +02:00
Sign in to join this conversation.
No labels pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Vateron-Media/XC_VM#5