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
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:
@@ -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()))
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user