diff --git a/app/api/admin.py b/app/api/admin.py index cf2ed37..4f8a089 100644 --- a/app/api/admin.py +++ b/app/api/admin.py @@ -383,7 +383,10 @@ async def admin_log_ws(websocket: WebSocket, key: str | None = None): except Exception: pass + # stdbuf -oL: zeilenweise Pufferung erzwingen, damit neue Log-Zeilen sofort + # (nicht erst blockweise) im Browser ankommen und durchscrollen. proc = await asyncio.create_subprocess_exec( + "stdbuf", "-oL", "-eL", "journalctl", "-f", "-u", "voice-assistant.service", "-n", "100", "--no-pager", "-o", "short", stdout=asyncio.subprocess.PIPE, diff --git a/app/web/index.html b/app/web/index.html index 4c4c8a4..ecb860e 100644 --- a/app/web/index.html +++ b/app/web/index.html @@ -219,6 +219,8 @@

Voice Assistant

+