mirror of https://github.com/Mai-with-u/MaiBot.git
移除focus log记录
parent
cbedf10cfd
commit
2df83f0bec
|
|
@ -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):
|
||||||
"""将循环信息写入文件"""
|
"""将循环信息写入文件"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue