feat: migrate coordinator-api services to use centralized aitbc package logging
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 10s
Integration Tests / test-service-integration (push) Successful in 47s
Python Tests / test-python (push) Failing after 1m26s
Security Scanning / security-scan (push) Successful in 47s

- Replace logging.getLogger with aitbc.get_logger in agent_service.py, regulatory_reporting.py, reputation_service.py, reward_service.py, trading_service.py, websocket_stream_manager.py, zk_memory_verification.py
- Remove logging.basicConfig from regulatory_reporting.py
- Consistent logger initialization across coordinator-api services
This commit is contained in:
aitbc
2026-04-24 23:40:49 +02:00
parent 0ccd8ef995
commit 9f51498725
7 changed files with 20 additions and 16 deletions

View File

@@ -4,11 +4,12 @@ Implements core orchestration logic and state management for AI agent workflows
"""
import asyncio
import logging
from datetime import datetime, timedelta
from typing import Any
logger = logging.getLogger(__name__)
from aitbc import get_logger
logger = get_logger(__name__)
from sqlmodel import Session, select, update

View File

@@ -8,15 +8,14 @@ import asyncio
import csv
import io
import json
import logging
from dataclasses import dataclass, field
from datetime import datetime, timedelta
from enum import StrEnum
from typing import Any
# Setup logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
from aitbc import get_logger
logger = get_logger(__name__)
class ReportType(StrEnum):

View File

@@ -3,11 +3,12 @@ Agent Reputation and Trust Service
Implements reputation management, trust score calculations, and economic profiling
"""
import logging
from datetime import datetime, timedelta
from typing import Any
logger = logging.getLogger(__name__)
from aitbc import get_logger
logger = get_logger(__name__)
from sqlmodel import Session, and_, func, select

View File

@@ -3,12 +3,13 @@ Agent Reward Engine Service
Implements performance-based reward calculations, distributions, and tier management
"""
import logging
from datetime import datetime, timedelta
from typing import Any
from uuid import uuid4
logger = logging.getLogger(__name__)
from aitbc import get_logger
logger = get_logger(__name__)
from sqlmodel import Session, and_, select

View File

@@ -3,12 +3,13 @@ Agent-to-Agent Trading Protocol Service
Implements P2P trading, matching, negotiation, and settlement systems
"""
import logging
from datetime import datetime, timedelta
from typing import Any
from uuid import uuid4
logger = logging.getLogger(__name__)
from aitbc import get_logger
logger = get_logger(__name__)
from sqlmodel import Session, or_, select

View File

@@ -7,7 +7,6 @@ bounded queues, and event loop protection for multi-modal fusion.
import asyncio
import json
import logging
import time
import uuid
import weakref
@@ -19,7 +18,9 @@ from typing import Any
from websockets.exceptions import ConnectionClosed
from websockets.server import WebSocketServerProtocol
logger = logging.getLogger(__name__)
from aitbc import get_logger
logger = get_logger(__name__)
class StreamStatus(Enum):

View File

@@ -10,15 +10,15 @@ from __future__ import annotations
import hashlib
import json
import logging
from fastapi import HTTPException
from sqlmodel import Session
from aitbc import get_logger
from ..blockchain.contract_interactions import ContractInteractionService
from ..domain.decentralized_memory import AgentMemoryNode
logger = logging.getLogger(__name__)
logger = get_logger(__name__)
class ZKMemoryVerificationService: