diff --git a/gateway/src/api/main.py b/gateway/src/api/main.py index ddb44ea..5783881 100644 --- a/gateway/src/api/main.py +++ b/gateway/src/api/main.py @@ -1,12 +1,11 @@ +import logging + from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from src.api.routes import (auth, flights, health, notifications, subscriptions, users) -import logging - - logging.config.fileConfig('logging.conf', disable_existing_loggers=False) app = FastAPI(title="Flights Information API") diff --git a/gateway/src/api/routes/health.py b/gateway/src/api/routes/health.py index 350f864..f72faaa 100644 --- a/gateway/src/api/routes/health.py +++ b/gateway/src/api/routes/health.py @@ -1,7 +1,8 @@ -from fastapi import APIRouter - # from src.api.main import my_logger import logging + +from fastapi import APIRouter + # from sys import stdout my_logger = logging.getLogger(__name__)