feat: increase log retrieval limit to 5000 for more comprehensive recent log data
This commit is contained in:
@@ -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
|
||||
]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user