obs(bid_flow): 对账器日志输出waiting前缀——拆解门禁'维度在办暂缓QC'等合法等待态可见,否则门禁生效但日志无痕易误判

This commit is contained in:
yumoqing 2026-09-15 18:04:11 +08:00
parent bebe76fa11
commit 07e4bf7a7a

View File

@ -1650,7 +1650,10 @@ def start_poller():
POLLER_STATE["last_error"] = "" POLLER_STATE["last_error"] = ""
for pid, acts in (res or {}).items(): for pid, acts in (res or {}).items():
for a in acts: for a in acts:
if a.startswith(("created", "escalated", "completed", "error", "trimmed")): # waiting 也输出(2026-09-15):拆解门禁「维度在办暂缓 QC」
# 等合法等待态是可观测性关键,不输出会误判门禁没生效。
if a.startswith(("created", "escalated", "completed",
"error", "trimmed", "waiting")):
try: try:
from appPublic.log import debug as _dbg from appPublic.log import debug as _dbg
_dbg("bid_flow %s: %s" % (pid, a)) _dbg("bid_flow %s: %s" % (pid, a))