移除focus log记录

This commit is contained in:
SengokuCola
2025-06-08 17:44:25 +08:00
parent cbedf10cfd
commit 2df83f0bec

View File

@@ -96,13 +96,14 @@ class CycleDetail:
or "group" or "group"
) )
current_time_minute = time.strftime("%Y%m%d_%H%M", time.localtime()) # current_time_minute = time.strftime("%Y%m%d_%H%M", time.localtime())
try:
self.log_cycle_to_file( # try:
log_dir + self.prefix + f"/{current_time_minute}_cycle_" + str(self.cycle_id) + ".json" # 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}") # except Exception as e:
# logger.warning(f"写入文件日志,可能是群名称包含非法字符: {e}")
def log_cycle_to_file(self, file_path: str): def log_cycle_to_file(self, file_path: str):
"""将循环信息写入文件""" """将循环信息写入文件"""