From a343ce69aa87882131005c59d27bf033a85e3e29 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 18 Oct 2025 10:58:08 +0200 Subject: [PATCH] Update system-logs.tsx --- AppImage/components/system-logs.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/AppImage/components/system-logs.tsx b/AppImage/components/system-logs.tsx index 59685c2..b3ef2a9 100644 --- a/AppImage/components/system-logs.tsx +++ b/AppImage/components/system-logs.tsx @@ -181,6 +181,13 @@ export function SystemLogs() { setLoading(true) setError(null) + // NOTE: Backend endpoints should filter data by current node only + // When a node belongs to a cluster, only show data for that specific node: + // - /api/logs - should return logs only from current node + // - /api/backups - should return backups only from current node + // - /api/events - should return events only from current node + // - /api/notifications - should return notifications only from current node + const [logsRes, backupsRes, eventsRes, notificationsRes] = await Promise.all([ fetchSystemLogs(), fetch(getApiUrl("/api/backups")), @@ -889,10 +896,8 @@ export function SystemLogs() { {log.timestamp} -
- {log.message} -
-
+
{log.message}
+
{log.source} {log.pid && ` • PID: ${log.pid}`} {log.hostname && ` • Host: ${log.hostname}`}