From 09e7c419831307fda70af0365f51a48b0fea1091 Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Thu, 12 Jun 2025 23:43:59 +0800 Subject: [PATCH] fix:betterlog --- src/chat/memory_system/Hippocampus.py | 12 ++++++------ src/common/logger.py | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/chat/memory_system/Hippocampus.py b/src/chat/memory_system/Hippocampus.py index a859c939b..5f84a10ff 100644 --- a/src/chat/memory_system/Hippocampus.py +++ b/src/chat/memory_system/Hippocampus.py @@ -409,9 +409,9 @@ class Hippocampus: activation_values[neighbor] = new_activation visited_nodes.add(neighbor) nodes_to_process.append((neighbor, new_activation, current_depth + 1)) - logger.debug( - f"节点 '{neighbor}' 被激活,激活值: {new_activation:.2f} (通过 '{current_node}' 连接,强度: {strength}, 深度: {current_depth + 1})" - ) # noqa: E501 + # logger.debug( + # f"节点 '{neighbor}' 被激活,激活值: {new_activation:.2f} (通过 '{current_node}' 连接,强度: {strength}, 深度: {current_depth + 1})" + # ) # noqa: E501 # 更新激活映射 for node, activation_value in activation_values.items(): @@ -580,9 +580,9 @@ class Hippocampus: activation_values[neighbor] = new_activation visited_nodes.add(neighbor) nodes_to_process.append((neighbor, new_activation, current_depth + 1)) - logger.debug( - f"节点 '{neighbor}' 被激活,激活值: {new_activation:.2f} (通过 '{current_node}' 连接,强度: {strength}, 深度: {current_depth + 1})" - ) # noqa: E501 + # logger.debug( + # f"节点 '{neighbor}' 被激活,激活值: {new_activation:.2f} (通过 '{current_node}' 连接,强度: {strength}, 深度: {current_depth + 1})" + # ) # noqa: E501 # 更新激活映射 for node, activation_value in activation_values.items(): diff --git a/src/common/logger.py b/src/common/logger.py index bd1b3f0d7..72eb8c5f6 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -150,7 +150,8 @@ MODULE_COLORS = { "plugins": "\033[31m", # 红色 "plugin_api": "\033[33m", # 黄色 "remote": "\033[38;5;93m", # 紫蓝色 - "planner": "\033[31m]", + "planner": "\033[31m", + "memory": "\033[34m", } RESET_COLOR = "\033[0m"