Remove comments and verbose logging from services
This commit is contained in:
@@ -19,19 +19,12 @@ db_manager = None
|
||||
async def lifespan(app: FastAPI):
|
||||
global ftp_monitor, db_manager
|
||||
|
||||
logger.info("Starting SA4CPS Data Ingestion Service...")
|
||||
|
||||
db_manager = DatabaseManager()
|
||||
await db_manager.connect()
|
||||
logger.info("Database connection established")
|
||||
|
||||
ftp_monitor = FTPMonitor(db_manager)
|
||||
logger.info("FTP monitor created")
|
||||
|
||||
monitoring_task = asyncio.create_task(ftp_monitor.start_monitoring())
|
||||
logger.info("FTP monitoring task started in background")
|
||||
|
||||
logger.info("Service startup complete - HTTP server ready to accept requests")
|
||||
|
||||
yield
|
||||
|
||||
@@ -78,7 +71,8 @@ async def health_check():
|
||||
global ftp_monitor, db_manager
|
||||
|
||||
health_status = {
|
||||
"service": "healthy",
|
||||
"service": "data-ingestion-service",
|
||||
"status": "healthy",
|
||||
"timestamp": datetime.now().isoformat(),
|
||||
"database": "unknown",
|
||||
"ftp_monitor": "unknown"
|
||||
|
||||
Reference in New Issue
Block a user