This commit is contained in:
qiangyanwen 2023-01-07 18:41:28 +08:00
parent b93e3013d0
commit f573e542cd
1 changed files with 3 additions and 3 deletions

6
app.py
View File

@ -36,9 +36,9 @@ def create_app() -> FastAPI:
loading_router_middleware(app)
if settings.PROJECT.DEBUG:
logger.info("Application started successfully:{}".format(CORSMiddleware.__name__))
logger.info(f"Server address http://{host}:{settings.PROJECT.PORT}")
logger.info(f"Api doc address http://{host}:{settings.PROJECT.PORT}{settings.SWAGGER.DOCS_URL}")
logger.info(f"Api redoc address http://{host}:{settings.PROJECT.PORT}{settings.SWAGGER.REDOC_URL}")
logger.info(f"Server address http://127.0.0.1:{settings.PROJECT.PORT}")
logger.info(f"Api doc address http://127.0.0.1:{settings.PROJECT.PORT}{settings.SWAGGER.DOCS_URL}")
logger.info(f"Api redoc address http://127.0.0.1:{settings.PROJECT.PORT}{settings.SWAGGER.REDOC_URL}")
return app