chore(knowledge): 沉淀决策日志统一加 [knowledge] 前缀,跳过提到 WARNING 级

便于 docker logs 一条 grep 抓全部捕获决策(跳过/回退/失败):
  docker logs deerflow-vite-gateway 2>&1 | grep "\[knowledge\]"

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
AdministratorandClaude Opus 4.8 committed 2026-06-08 22:55:44 +08:00
1 parent 76320ca5a3
commit d9fc7c9fdf
2 files changed
+7 -7

No files matched your search

@@ -296,9 +296,9 @@ class KnowledgeService:
effective_status = status
if llm_fallback:
logger.warning(
"Knowledge capture for thread %s fell back to rule-based extraction "
"(LLM distillation produced nothing usable); landing as draft. "
"Check extraction model '%s' / earlier logs for the cause.",
"[knowledge] thread %s — capture fell back to rule-based extraction "
"(LLM distillation produced nothing usable); landing as DRAFT. "
"Check extraction model '%s' / earlier [knowledge] logs for the cause.",
thread_id,
self.config.extract_model_name or "models[0]",
)