modify: 更新日志配置

This commit is contained in:
2026-04-26 10:20:32 +08:00
parent 55463a9d07
commit 00b9e0ebc0
83 changed files with 4050 additions and 1755 deletions
+2
View File
@@ -44,6 +44,7 @@ debug = true
host = "127.0.0.1"
port = 8001
reload = true
access_log = false
[development.logging]
level = "DEBUG"
@@ -65,6 +66,7 @@ host = "0.0.0.0"
port = 8000
reload = false
workers = 4
access_log = false
[production.logging]
level = "INFO"
+1 -1
View File
@@ -54,7 +54,7 @@ def app_run(app_config: dict, default_config: dict):
reload=reload,
workers=workers,
log_level="debug" if app_config.get("debug", False) else "info",
access_log=True,
access_log=False,
timeout_keep_alive=timeout_keep_alive,
)