feat: 支持在配置文件中开关日志文件保存

This commit is contained in:
helloplhm-qwq
2023-12-17 13:45:36 +08:00
parent 9b5f48c915
commit de26226171
3 changed files with 44 additions and 38 deletions

View File

@ -39,6 +39,7 @@ def _read_config(key):
debug_mode = debug_mode if (debug_mode := _read_config("common.debug_mode")) else False
log_length_limit = log_length_limit if (log_length_limit := _read_config("common.log_length_limit")) else 500
log_file = log_file if (log_file := _read_config("common.log_file")) else True
running = True
config = {}
workdir = os.getcwd()