增强 8910 日志盯盘与联调可读性:本机落盘 info/error、bat 入口,出站与 echo 打 reply 预览,部署强制 UTF-8。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
linmianxun
2026-09-13 21:47:05 +08:00
co-authored by Cursor
parent 4d90bba99d
commit 8bdf4990a2
8 changed files with 263 additions and 45 deletions
+4 -1
View File
@@ -50,9 +50,12 @@ def handle_echo_text(
content=body,
dedupe_key=dedupe,
)
# 联调需要能在 err 日志里对上企微气泡;正文截断避免超长刷屏
preview = body if len(body) <= 200 else (body[:200] + "…")
logger.info(
"echo 已排队 outbox ok=%s info=%s sender=%s",
"echo 已排队 outbox ok=%s info=%s sender=%s reply=%s",
ok,
info,
message.sender_id,
preview,
)