chore(wecom): INFO log on every inbound callback frame (recv diagnostics)

This commit is contained in:
openbot committed 2026-10-13 17:34:53 +08:00
1 parent 26dd44bd19
commit 69ea08ad44
1 file changed
+3
+3
View File
@@ -132,6 +132,9 @@ class WecomAibotChannel:
if raw is None:
continue
msg = json.loads(raw)
cmd = msg.get("cmd", "")
if cmd: # skip ack/pong frames (no cmd? actually acks have no cmd)
self._logger.info(f"[wecom] recv cmd={cmd} chatid={(msg.get('body') or {}).get('chatid')} msgtype={(msg.get('body') or {}).get('msgtype')}")
try:
self._dispatch(msg, ws)
except Exception as e: # noqa: BLE001