Add SSE stream logging to diagnose frontend data delivery

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-02-08 16:47:41 +00:00
parent 1eec4a2342
commit 33953fcf2b

View File

@@ -528,6 +528,7 @@ def stream():
# Try to get data from queue
try:
data = app_module.gsm_spy_queue.get(timeout=1)
logger.info(f"SSE sending: type={data.get('type', '?')}")
yield format_sse(data)
last_keepalive = time.time()
except queue.Empty: