Migrate exchange app to centralized aitbc package utilities
- Migrate 2 files from logging to aitbc.get_logger - health_monitor.py, real_exchange_integration.py - Remove logging.basicConfig() from both files - Migrate 3 files with hardcoded paths to use DATA_DIR constant - simple_exchange_api.py, scripts/seed_market.py, database.py
This commit is contained in:
@@ -10,13 +10,11 @@ from datetime import datetime, timedelta
|
||||
from typing import Dict, List, Optional, Any
|
||||
from dataclasses import dataclass
|
||||
from enum import Enum
|
||||
import logging
|
||||
|
||||
from aitbc import get_logger
|
||||
from real_exchange_integration import exchange_manager, ExchangeStatus, ExchangeHealth
|
||||
|
||||
# Setup logging
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger(__name__)
|
||||
logger = get_logger(__name__)
|
||||
|
||||
class FailoverStrategy(str, Enum):
|
||||
"""Failover strategies"""
|
||||
|
||||
Reference in New Issue
Block a user