feat: increase log retrieval limit to 5000 for more comprehensive recent log data

This commit is contained in:
2025-12-04 22:30:40 -05:00
parent 85f7da37d0
commit 58adb9b4a5

View File

@@ -1239,14 +1239,14 @@ class Firewall extends Component
$this->logError = '';
try {
// Fetch all available logs without pagination to get the freshest data
// Add timestamp to prevent caching
// Proxmox returns logs with newest first when using start=0
// Fetch a larger batch to ensure we get the most recent logs
$response = $this->firewallRequest(
'/nodes/' . $this->server->node->name . '/qemu/' . $this->server->vm_id . '/firewall/log',
'get',
[
'limit' => $this->logLimit,
'start' => 0,
'limit' => 5000, // Fetch more logs to get the recent ones
'start' => 0, // Start from the beginning (most recent)
'_dc' => time() // Cache buster
]
);