feat: add configure_logging function to aitbc_logging module
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Successful in 7s
Deploy to Testnet / deploy-testnet (push) Successful in 1m14s
Integration Tests / test-service-integration (push) Failing after 1m2s
Multi-Node Stress Testing / stress-test (push) Successful in 8s
Node Failover Simulation / failover-test (push) Failing after 7s
Python Tests / test-python (push) Successful in 24s
Security Scanning / security-scan (push) Successful in 1m18s

- Add configure_logging function to aitbc_logging.py for root logging level configuration
- Update coordinator-api import to use aitbc_logging.configure_logging instead of deprecated aitbc.logging module
This commit is contained in:
aitbc
2026-05-03 19:33:19 +02:00
parent 75cf8b007f
commit caad83f766
2 changed files with 5 additions and 1 deletions

View File

@@ -30,3 +30,7 @@ def setup_logger(
def get_logger(name: str) -> logging.Logger:
"""Get a logger instance"""
return logging.getLogger(name)
def configure_logging(level: str = "INFO") -> None:
"""Configure root logging level"""
logging.basicConfig(level=getattr(logging, level.upper()))

View File

@@ -90,7 +90,7 @@ except ImportError:
print("WARNING: ML ZK proofs router not available (missing dependencies)")
from aitbc import get_logger
from aitbc.logging import configure_logging
from aitbc.aitbc_logging import configure_logging
from aitbc import (
RequestIDMiddleware,
PerformanceLoggingMiddleware,