mirror of https://github.com/Mai-with-u/MaiBot.git
杀掉多余loggerinfo
parent
01236be285
commit
a48d91739a
|
|
@ -295,7 +295,7 @@ async def handle_action(
|
|||
# 后续的 plan 循环会检测到这个 "done_no_reply" 状态并使用反思 prompt
|
||||
|
||||
elif is_suitable: # 适用于 direct_reply 或 (send_new_message 且 RG决定发送并通过检查)
|
||||
logger.info(f"[私聊][{conversation_instance.private_name}] 动作 '{action}': 找到合适的回复,准备发送。")
|
||||
logger.debug(f"[私聊][{conversation_instance.private_name}] 动作 '{action}': 找到合适的回复,准备发送。")
|
||||
# conversation_info.last_reply_rejection_reason = None # 已在循环内清除
|
||||
# conversation_info.last_rejected_reply_content = None
|
||||
conversation_instance.generated_reply = generated_content_for_check_or_send # 使用检查通过的内容
|
||||
|
|
@ -311,7 +311,7 @@ async def handle_action(
|
|||
action_successful = True
|
||||
final_status = "done" # 明确设置 final_status
|
||||
final_reason = "成功发送" # 明确设置 final_reason
|
||||
logger.info(f"[私聊][{conversation_instance.private_name}] 动作 '{action}': 成功发送回复.")
|
||||
logger.debug(f"[私聊][{conversation_instance.private_name}] 动作 '{action}': 成功发送回复.")
|
||||
|
||||
# --- 新增:将机器人发送的消息添加到 ObservationInfo 的 chat_history ---
|
||||
if (
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ async def run_conversation_loop(conversation_instance: "Conversation"):
|
|||
核心的规划与行动循环 (PFC Loop)。
|
||||
之前是 Conversation 类中的 _plan_and_action_loop 方法。
|
||||
"""
|
||||
logger.info(f"[私聊][{conversation_instance.private_name}] 进入 run_conversation_loop 循环。")
|
||||
logger.debug(f"[私聊][{conversation_instance.private_name}] 进入 run_conversation_loop 循环。")
|
||||
|
||||
if not conversation_instance._initialized:
|
||||
logger.error(f"[私聊][{conversation_instance.private_name}] 尝试在未初始化状态下运行规划循环,退出。")
|
||||
|
|
|
|||
|
|
@ -102,11 +102,11 @@ class PfcEmotionUpdater:
|
|||
and detected_emotion_word in self.mood_mng.emotion_map
|
||||
):
|
||||
self.mood_mng.update_mood_from_emotion(detected_emotion_word, intensity=self.EMOTION_UPDATE_INTENSITY)
|
||||
logger.info(
|
||||
logger.debug(
|
||||
f"[私聊][{self.private_name}] 基于事件 '{event_description}',情绪已更新为倾向于 '{detected_emotion_word}'。当前心情: {self.mood_mng.current_mood.text}"
|
||||
)
|
||||
elif detected_emotion_word == "无变化":
|
||||
logger.info(f"[私聊][{self.private_name}] 基于事件 '{event_description}',LLM判断情绪无显著变化。")
|
||||
logger.debug(f"[私聊][{self.private_name}] 基于事件 '{event_description}',LLM判断情绪无显著变化。")
|
||||
else:
|
||||
logger.warning(
|
||||
f"[私聊][{self.private_name}] LLM返回了未知的情绪词 '{detected_emotion_word}' 或未返回有效词,情绪未主动更新。"
|
||||
|
|
|
|||
Loading…
Reference in New Issue