modify: 更新日志配置
This commit is contained in:
@@ -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
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user