Commit d737b7741420f0c8abd2bd4c1df2465773cb3613
1 parent
50449049
fix(logs): suppress excessive HippocampusDebug and TaskService inference console logs
Showing
2 changed files
with
4 additions
and
4 deletions
server/services/memory-service.js
| ... | ... | @@ -229,7 +229,7 @@ function retrieveRelevantPlans(agentId, taskText) { |
| 229 | 229 | const score = entryKeywords.length > 0 |
| 230 | 230 | ? hits.length / entryKeywords.length // 命中了 entry 的多少比例关键词 |
| 231 | 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 | 233 | return { ...entry, score, hits }; |
| 234 | 234 | }); |
| 235 | 235 | ... | ... |
server/services/task-service.js
| ... | ... | @@ -183,7 +183,7 @@ class TaskService { |
| 183 | 183 | |
| 184 | 184 | if (bestParent) { |
| 185 | 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 | 219 | |
| 220 | 220 | if (bestConv) { |
| 221 | 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 | 261 | |
| 262 | 262 | if (bestConv) { |
| 263 | 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 | } | ... | ... |