日志补充

This commit is contained in:
lhx
2025-09-27 11:54:22 +08:00
parent 4fd9e635b0
commit b7ad3eb087
3 changed files with 13 additions and 5 deletions

View File

@@ -1,11 +1,17 @@
import uvicorn
from app.main import app
from app.core.config import settings
from app.core.logging_config import setup_logging
if __name__ == "__main__":
# 确保日志系统已初始化
setup_logging()
uvicorn.run(
"app.main:app",
host=settings.APP_HOST,
port=settings.APP_PORT,
reload=settings.APP_DEBUG
reload=settings.APP_DEBUG,
access_log=True,
log_level="info"
)