fix: implement smart auto-scroll and definitive stack filtering in global logs

This commit is contained in:
SaelixCode
2026-03-09 12:21:12 -04:00
parent f501fa4712
commit b2674080c4
3 changed files with 38 additions and 14 deletions
+3 -1
View File
@@ -839,7 +839,9 @@ app.get('/api/logs/global', async (req: Request, res: Response) => {
payload.split('\n').forEach(line => parseAndPushLog(line, streamType === 2 ? 'STDERR' : 'STDOUT'));
}
}
} catch (err) { /* ignore */ }
} catch (err) {
console.warn(`[GlobalLogs] Failed to fetch/parse logs for container ${containerName} (${c.Id.substring(0, 12)}):`, (err as Error).message);
}
}));
// Sort globally by timestamp ascending (newest bottom) and limit to 2000 lines