fix: serialnet_loop 改为直接查 tb_serialnet,不依赖 _registry

This commit is contained in:
wangfq
2026-05-28 12:08:29 +08:00
parent 85e7f66b19
commit df461362f5
2 changed files with 50 additions and 26 deletions

View File

@@ -70,6 +70,7 @@ class EDCProtocol:
msg = parse_message(data)
if msg is None:
return
logger.info(f"UDP {msg} from {addr}")
method = msg.get("Method", "")
logger.debug(f"UDP {method} from {addr}")
@@ -108,6 +109,7 @@ async def handle_tcp_client(reader: asyncio.StreamReader,
async def process_message(msg: dict):
"""处理单条消息并返回响应文本"""
logger.info(f"TCP get_rcv {msg} from {addr}")
method = msg.get("Method", "")
logger.debug(f"TCP {method} from {addr}")