feat: update rxtx log

This commit is contained in:
ziesorx 2025-09-23 15:44:09 +07:00
parent cbbed3d933
commit 8222e82dd7
4 changed files with 28 additions and 32 deletions

4
app.py
View file

@ -16,7 +16,7 @@ from core.communication.state import worker_state
# Configure logging
logging.basicConfig(
level=logging.INFO,
level=logging.DEBUG,
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
handlers=[
logging.FileHandler("detector_worker.log"),
@ -101,7 +101,7 @@ async def websocket_handler(websocket: WebSocket):
Handles all protocol messages according to worker.md specification.
"""
client_info = f"{websocket.client.host}:{websocket.client.port}" if websocket.client else "unknown"
logger.info(f"New WebSocket connection request from {client_info}")
logger.info(f"[RX ← Backend] New WebSocket connection request from {client_info}")
try:
await websocket_endpoint(websocket)