From 2237621d50ffd1fb2b65bc90b6d63566be3eb1e1 Mon Sep 17 00:00:00 2001 From: yibo Date: Mon, 24 Aug 2026 01:11:06 +0800 Subject: [PATCH] fix(index): 僵尸 goal 扫描启动日志改为无条件打印 (T-mt628pke) --- server/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index 6ed8fd2..28cbd47 100644 --- a/server/index.js +++ b/server/index.js @@ -166,7 +166,9 @@ async function start() { // 开机补一次全量扫描,再起周期性心跳兜底(同 wallclock 看门狗的形状)。 try { const swept = taskSettle.sweepStuckActiveGoals(); - if (swept) console.log(`[Startup] 🧟 僵尸 goal 扫描:开机收口 ${swept} 条`); + // 无条件打印:swept=0 时也要留痕,否则"扫描确实跑过但没找到"和"扫描压根没跑起来" + // 在日志里长一个样——而这正是这次要修的那类静默失败。 + console.log(`[Startup] 🧟 僵尸 goal 扫描:开机收口 ${swept} 条`); taskSettle.startZombieGoalSweeper(); } catch (err) { console.error('[Startup] 僵尸 goal 扫描启动失败:', err.message); -- libgit2 0.21.4