chore(wecom): INFO log on every inbound callback frame (recv diagnostics)
This commit is contained in:
1 parent
26dd44bd19
commit
69ea08ad44
1 file changed
+3
@@ -132,6 +132,9 @@ class WecomAibotChannel:
|
|||||||
if raw is None:
|
if raw is None:
|
||||||
continue
|
continue
|
||||||
msg = json.loads(raw)
|
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:
|
try:
|
||||||
self._dispatch(msg, ws)
|
self._dispatch(msg, ws)
|
||||||
except Exception as e: # noqa: BLE001
|
except Exception as e: # noqa: BLE001
|
||||||
|
|||||||
Reference in new issue
Block a user