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"] -