Migrate infrastructure apps to centralized aitbc package utilities
- Migrate monitor/monitor.py from logging to aitbc.get_logger and hardcoded paths to DATA_DIR - Migrate multi-region-load-balancer/main.py from logging to aitbc.get_logger - Migrate global-infrastructure/main.py from logging to aitbc.get_logger - Migrate global-ai-agents/main.py from logging to aitbc.get_logger - Migrate exchange-integration/main.py from logging to aitbc.get_logger - Migrate trading-engine/main.py from logging to aitbc.get_logger - Migrate compliance-service/main.py from logging to aitbc.get_logger - Remove logging.basicConfig() calls from all files
This commit is contained in:
@@ -5,7 +5,6 @@ Handles KYC/AML, regulatory compliance, and monitoring
|
||||
|
||||
import asyncio
|
||||
import json
|
||||
import logging
|
||||
from datetime import datetime, timedelta
|
||||
from pathlib import Path
|
||||
from typing import Dict, Any, List, Optional
|
||||
@@ -13,9 +12,9 @@ from fastapi import FastAPI, HTTPException
|
||||
from pydantic import BaseModel
|
||||
from contextlib import asynccontextmanager
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger(__name__)
|
||||
from aitbc import get_logger
|
||||
|
||||
logger = get_logger(__name__)
|
||||
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
|
||||
Reference in New Issue
Block a user