Log error if system status can't load

Project......: Performance Profiling
Sponsored-by.: NLnet NGI0 Commons Fund
This commit is contained in:
Harald Eilertsen
2026-02-23 20:06:12 +01:00
parent 492533729d
commit 82bd91d9d7

View File

@@ -281,14 +281,7 @@ class Channel_activities {
],
];
} else {
self::$activities['status'] = [
'label' => t('System status'),
'icon' => 'gpu-card',
'url' => z_root() . '/perf',
'date' => datetime_convert(),
'items' => ['error' => print_r($response, true)],
'tpl' => 'system_status_widget.tpl'
];
logger("fetching perfstats failed: {$response['return_code']}", LOGGER_NORMAL, LOG_ERR);
}
}