mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
revert: feat: 支持在配置文件中开关日志文件保存
This commit is contained in:
parent
57977c82d2
commit
909abc3239
@ -39,7 +39,7 @@ def _read_config(key):
|
|||||||
|
|
||||||
debug_mode = debug_mode if (debug_mode := _read_config("common.debug_mode")) else False
|
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_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
|
log_file = log_file if (not isinstance(log_file := _read_config("common.log_file"), type(None))) else True
|
||||||
running = True
|
running = True
|
||||||
config = {}
|
config = {}
|
||||||
workdir = os.getcwd()
|
workdir = os.getcwd()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user