fix(bluebubbles): preserve exception traceback in webhook parse error

The webhook handler's form/JSON parse fallback (`_handle_webhook`) logs
the `Exception` raised while decoding the inbound payload but drops
the traceback. When a malformed or unexpected payload shape arrives
from the BlueBubbles server in production, we see:

    [bluebubbles] webhook parse error: ...

with no call-site. Add `exc_info=True` so the stack is preserved.
This commit is contained in:
Alexazhu 2026-04-18 15:32:24 +08:00
parent 73bccc94c7
commit a74d759061

View file

@ -775,7 +775,7 @@ class BlueBubblesAdapter(BasePlatformAdapter):
)[0]
payload = json.loads(payload_str) if payload_str else {}
except Exception as exc:
logger.error("[bluebubbles] webhook parse error: %s", exc)
logger.error("[bluebubbles] webhook parse error: %s", exc, exc_info=True)
return web.json_response({"error": "invalid payload"}, status=400)
event_type = self._value(payload.get("type"), payload.get("event")) or ""