JPBianchi commited on
Commit
e318df7
1 Parent(s): 747f388

fixed logger in main

Browse files
Files changed (1) hide show
  1. 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.warning("Running in development mode - allowing CORS for all origins")
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=["*"],