Migrate wallet app to centralized aitbc package utilities
- Migrate 4 files from logging to aitbc.get_logger - __main__.py, chain/multichain_ledger.py, chain/manager.py, chain/chain_aware_wallet_service.py - Remove logging.basicConfig() from __main__.py
This commit is contained in:
@@ -7,19 +7,13 @@ with multi-chain support.
|
||||
"""
|
||||
|
||||
import uvicorn
|
||||
import logging
|
||||
from pathlib import Path
|
||||
|
||||
from aitbc import get_logger
|
||||
from app.main import app
|
||||
from app.settings import settings
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logger = get_logger(__name__)
|
||||
|
||||
def main():
|
||||
"""Main entry point for the wallet daemon"""
|
||||
|
||||
Reference in New Issue
Block a user