Commit d737b7741420f0c8abd2bd4c1df2465773cb3613

Authored by Yi Bo
1 parent 50449049

fix(logs): suppress excessive HippocampusDebug and TaskService inference console logs

server/services/memory-service.js
@@ -229,7 +229,7 @@ function retrieveRelevantPlans(agentId, taskText) { @@ -229,7 +229,7 @@ function retrieveRelevantPlans(agentId, taskText) {
229 const score = entryKeywords.length > 0 229 const score = entryKeywords.length > 0
230 ? hits.length / entryKeywords.length // 命中了 entry 的多少比例关键词 230 ? hits.length / entryKeywords.length // 命中了 entry 的多少比例关键词
231 : 0; 231 : 0;
232 - console.log(`[HippocampusDebug] agent=${agentId} scenario="${entry.scenario}" score=${score} hits=${hits.length} taskKwLength=${taskKeywords.length} entryKws=${entryKeywords.length}`); 232 + // console.log(`[HippocampusDebug] agent=${agentId} scenario="${entry.scenario}" score=${score} hits=${hits.length} taskKwLength=${taskKeywords.length} entryKws=${entryKeywords.length}`);
233 return { ...entry, score, hits }; 233 return { ...entry, score, hits };
234 }); 234 });
235 235
server/services/task-service.js
@@ -183,7 +183,7 @@ class TaskService { @@ -183,7 +183,7 @@ class TaskService {
183 183
184 if (bestParent) { 184 if (bestParent) {
185 t.parentTaskId = bestParent.taskId; 185 t.parentTaskId = bestParent.taskId;
186 - console.log(`[TaskService] 🔗 Inferred parent: ${t.taskId} → ${bestParent.taskId}`); 186 + // console.log(`[TaskService] 🔗 Inferred parent: ${t.taskId} → ${bestParent.taskId}`);
187 } 187 }
188 } 188 }
189 189
@@ -219,7 +219,7 @@ class TaskService { @@ -219,7 +219,7 @@ class TaskService {
219 219
220 if (bestConv) { 220 if (bestConv) {
221 t.parentTaskId = bestConv.taskId; 221 t.parentTaskId = bestConv.taskId;
222 - console.log(`[TaskService] 🔗 Inferred parent (master→T): ${t.taskId} → ${bestConv.taskId}`); 222 + // console.log(`[TaskService] 🔗 Inferred parent (master→T): ${t.taskId} → ${bestConv.taskId}`);
223 } 223 }
224 } 224 }
225 225
@@ -261,7 +261,7 @@ class TaskService { @@ -261,7 +261,7 @@ class TaskService {
261 261
262 if (bestConv) { 262 if (bestConv) {
263 t.parentTaskId = bestConv.taskId; 263 t.parentTaskId = bestConv.taskId;
264 - console.log(`[TaskService] 🔗 Inferred parent (conv→tpl): ${t.taskId} → ${bestConv.taskId}`); 264 + // console.log(`[TaskService] 🔗 Inferred parent (conv→tpl): ${t.taskId} → ${bestConv.taskId}`);
265 } 265 }
266 } 266 }
267 } 267 }