mirror of https://github.com/Mai-with-u/MaiBot.git
fix too many open files in logger.py
parent
16a0717c6e
commit
d4a76e094f
|
|
@ -0,0 +1 @@
|
|||
Subproject commit d5824d2f48c9415cf619d2b32608c2db6a1bbc39
|
||||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue