mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-09 23:28:38 +02:00
Don’t report status anymore
This commit is contained in:
parent
ba5b81cf2d
commit
7986505b99
@ -285,11 +285,10 @@ class Node extends Model
|
||||
|
||||
public function serverStatuses(): array
|
||||
{
|
||||
$statuses = [];
|
||||
try {
|
||||
$statuses = Http::daemon($this)->connectTimeout(1)->timeout(1)->get('/api/servers')->json() ?? [];
|
||||
} catch (Exception $exception) {
|
||||
report($exception);
|
||||
$statuses = Http::daemon($this)->connectTimeout(1)->timeout(1)->throw()->get('/api/servers')->json() ?? [];
|
||||
} catch (Exception) {
|
||||
$statuses = [];
|
||||
}
|
||||
|
||||
foreach ($statuses as $status) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user