refactor: migrate all remaining modules to use shared aitbc.logging from aitbc-core package
- Replace `import logging` with `from aitbc.logging import get_logger` across blockchain-node scripts and coordinator-api modules - Update logger initialization from `logging.getLogger(__name__)` to `get_logger(__name__)` in 30+ files - Add production configuration validators for API keys, HMAC secret, and JWT secret in coordinator config - Enhance coordinator startup with comprehensive initialization logging
This commit is contained in:
@@ -6,7 +6,7 @@ Uses Starlette Broadcast to share messages between nodes
|
||||
|
||||
import argparse
|
||||
import asyncio
|
||||
import logging
|
||||
from aitbc.logging import get_logger
|
||||
from typing import Any, Dict
|
||||
|
||||
from starlette.applications import Starlette
|
||||
@@ -19,7 +19,7 @@ import uvicorn
|
||||
|
||||
# Setup logging
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger(__name__)
|
||||
logger = get_logger(__name__)
|
||||
|
||||
# Global broadcast instance
|
||||
broadcast = Broadcast("memory://")
|
||||
|
||||
Reference in New Issue
Block a user