From bc2b2bf23b4e6749b3fddcd4de81cd9025a3a6fe Mon Sep 17 00:00:00 2001 From: Smittix Date: Wed, 21 Jan 2026 23:38:21 +0000 Subject: [PATCH] Add full traceback to Bluetooth scan error logging --- routes/tscm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/tscm.py b/routes/tscm.py index 75d5296..7957a73 100644 --- a/routes/tscm.py +++ b/routes/tscm.py @@ -1300,7 +1300,8 @@ def _run_sweep( }) last_bt_scan = current_time except Exception as e: - logger.error(f"Bluetooth scan error: {e}") + import traceback + logger.error(f"Bluetooth scan error: {e}\n{traceback.format_exc()}") # Perform RF scan using SDR if rf_enabled and (current_time - last_rf_scan) >= rf_scan_interval: