mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-06-11 01:04:56 +02:00
5202665c1a
The MemoryLogHandler broadcasts every record to the /logs namespace, but with async_mode='threading' Socket.IO falls back to long-polling. Each polling request is logged by werkzeug, the broadcast wakes the pending poll, the client immediately re-polls, and the cycle repeats — producing 10+ requests/sec per open System Log tab. Filter werkzeug access logs for /socket.io/ and /api/logs/ paths so neither the buffer nor the broadcast trigger the loop. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>