fix too many open files in logger.py

pull/1041/head
春河晴 2025-06-05 14:56:20 +09:00
parent 16a0717c6e
commit d4a76e094f
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

1
MaiMBot-LPMM 160000

@ -0,0 +1 @@
Subproject commit d5824d2f48c9415cf619d2b32608c2db6a1bbc39

View File

@ -1076,7 +1076,7 @@ def get_module_logger(
# 文件处理器
log_dir = Path(current_config["log_dir"])
log_dir.mkdir(parents=True, exist_ok=True)
log_file = log_dir / module_name / "{time:YYYY-MM-DD}.log"
log_file = log_dir / "{time:YYYY-MM-DD}.log"
log_file.parent.mkdir(parents=True, exist_ok=True)
file_id = logger.add(