feat: improve routing logs and tuhui integration

This commit is contained in:
2026-03-08 17:34:56 +08:00
parent 39de916b89
commit 3a78eb304a
4 changed files with 214 additions and 46 deletions

View File

@@ -14,9 +14,13 @@ import hashlib
# 添加项目路径
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from core.websocket_logger_setup import install_log_record_factory
install_log_record_factory()
logging.basicConfig(
level=logging.INFO,
format='[%(asctime)s] %(levelname)s: %(message)s'
format='[v%(app_version)s][%(asctime)s] %(levelname)s: %(message)s'
)
logger = logging.getLogger(__name__)