From 82f667dff036caecebc84df59e9f4f45650a4b07 Mon Sep 17 00:00:00 2001 From: qiangyanwen <508737091@qq.com> Date: Thu, 26 May 2022 09:41:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index f574740..9d74ae5 100644 --- a/app.py +++ b/app.py @@ -12,6 +12,7 @@ from config import settings from utils.system import host from fastapi.middleware.cors import CORSMiddleware + def create_app() -> FastAPI: logger.info("loading application configuration") @@ -36,7 +37,6 @@ def create_app() -> FastAPI: allow_headers=["*"], ) - if settings.PROJECT.DEBUG: logger.info("Application started successfully:{}".format(CORSMiddleware.__name__)) logger.info(f"Server address http://{host}:{settings.PROJECT.PORT}") @@ -46,4 +46,3 @@ def create_app() -> FastAPI: __all__ = ["create_app"] -