From 197cd84f210914b9f1240df33d87b060132ca198 Mon Sep 17 00:00:00 2001 From: James Smith Date: Sun, 21 Dec 2025 14:59:04 +0000 Subject: [PATCH] Add more debug logging for BT stream connection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- intercept.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/intercept.py b/intercept.py index ea62f7b..e9e2382 100755 --- a/intercept.py +++ b/intercept.py @@ -6186,11 +6186,14 @@ def get_bt_devices(): @app.route('/bt/stream') def stream_bt(): """SSE stream for Bluetooth events.""" + print("[BT Stream] Client connected") def generate(): import json + print("[BT Stream] Generator started, waiting for queue...") while True: try: msg = bt_queue.get(timeout=1) + print(f"[BT Stream] Got from queue: {msg.get('type')}") if msg.get('type') == 'device': print(f"[BT Stream] Sending device: {msg.get('mac')}") yield f"data: {json.dumps(msg)}\n\n"