refactor: 优化日志输出级别并简化工具加载逻辑 (#957)
- 将部分info级别日志降级为debug级别 - 重构工具文件加载逻辑 - 修改部分错误提示信息
This commit is contained in:
@@ -12,7 +12,7 @@ function (nodeData, targetNode, nodeMap) {
|
||||
|
||||
// 获取所有传送点作为起点
|
||||
const teleportNodes = nodeData.node.filter(node => node.type === "teleport");
|
||||
//log.info(`找到 ${teleportNodes.length} 个传送点作为可能的起点`);
|
||||
log.debug(`找到 ${teleportNodes.length} 个传送点作为可能的起点`);
|
||||
|
||||
// 对每个传送点,尝试查找到目标的路径
|
||||
for (const startNode of teleportNodes) {
|
||||
@@ -70,6 +70,6 @@ function (nodeData, targetNode, nodeMap) {
|
||||
const reversePaths = findReversePathsIfNeeded(nodeData, targetNode, nodeMap, validPaths);
|
||||
validPaths.push(...reversePaths);
|
||||
|
||||
log.info(`共找到 ${validPaths.length} 条有效路径`);
|
||||
log.debug(`共找到 ${validPaths.length} 条有效路径`);
|
||||
return validPaths;
|
||||
}
|
||||
Reference in New Issue
Block a user