fixed logger in main
Browse files- app/main.py +1 -1
app/main.py
CHANGED
@@ -27,7 +27,7 @@ app = FastAPI()
|
|
27 |
environment = os.getenv("ENVIRONMENT", "dev") # created by dockerfile
|
28 |
|
29 |
if environment == "dev":
|
30 |
-
logger
|
31 |
app.add_middleware(
|
32 |
CORSMiddleware,
|
33 |
allow_origins=["*"],
|
|
|
27 |
environment = os.getenv("ENVIRONMENT", "dev") # created by dockerfile
|
28 |
|
29 |
if environment == "dev":
|
30 |
+
logger("Running in development mode - allowing CORS for all origins")
|
31 |
app.add_middleware(
|
32 |
CORSMiddleware,
|
33 |
allow_origins=["*"],
|