From 2df83f0bec961d7ddffeab735e50d88b38839be0 Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Sun, 8 Jun 2025 17:44:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4focus=20log=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/focus_chat/heartFC_Cycleinfo.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/chat/focus_chat/heartFC_Cycleinfo.py b/src/chat/focus_chat/heartFC_Cycleinfo.py index b8fc1ef22..ec0c4f1c7 100644 --- a/src/chat/focus_chat/heartFC_Cycleinfo.py +++ b/src/chat/focus_chat/heartFC_Cycleinfo.py @@ -96,13 +96,14 @@ class CycleDetail: or "group" ) - current_time_minute = time.strftime("%Y%m%d_%H%M", time.localtime()) - try: - self.log_cycle_to_file( - log_dir + self.prefix + f"/{current_time_minute}_cycle_" + str(self.cycle_id) + ".json" - ) - except Exception as e: - logger.warning(f"写入文件日志,可能是群名称包含非法字符: {e}") + # current_time_minute = time.strftime("%Y%m%d_%H%M", time.localtime()) + + # try: + # self.log_cycle_to_file( + # log_dir + self.prefix + f"/{current_time_minute}_cycle_" + str(self.cycle_id) + ".json" + # ) + # except Exception as e: + # logger.warning(f"写入文件日志,可能是群名称包含非法字符: {e}") def log_cycle_to_file(self, file_path: str): """将循环信息写入文件"""