Commit be64d79
committed
feat(live): hide EVENTS/SYS log categories from public /live (node-only)
Per request, the public /live page now shows per-NODE activity only — operator
EVENTS (start/stop/save/...) and in-run SYS diagnostics (baseline/balance/
internet/...) are hidden from spectators. Server-side, authoritative:
- publicLogBuffer() = logBuffer filtered to cat==='node'.
- public SSE live 'log' forwarder drops cat events/sys before send.
- public SSE init logs + /api/public/logs use publicLogBuffer().
The admin SSE init still sends the full logBuffer, so the admin dashboard keeps
all categories.
Reviewed: live-drop (by data.cat) and replay-filter (re-classify the buffer
string) are provably consistent — same string, same classifyLogCategory — so no
line leaks through one path but not the other; broadcastLive=off still yields [].
Test suite green (188/31/45/35).1 parent 4a642c3 commit be64d79
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
308 | 315 | | |
309 | 316 | | |
310 | 317 | | |
| |||
1904 | 1911 | | |
1905 | 1912 | | |
1906 | 1913 | | |
1907 | | - | |
| 1914 | + | |
1908 | 1915 | | |
1909 | 1916 | | |
1910 | 1917 | | |
| |||
1918 | 1925 | | |
1919 | 1926 | | |
1920 | 1927 | | |
| 1928 | + | |
| 1929 | + | |
1921 | 1930 | | |
1922 | 1931 | | |
1923 | 1932 | | |
| |||
1941 | 1950 | | |
1942 | 1951 | | |
1943 | 1952 | | |
1944 | | - | |
| 1953 | + | |
1945 | 1954 | | |
1946 | 1955 | | |
1947 | 1956 | | |
| |||
0 commit comments