@@ -44,7 +44,7 @@ async def status_handler(request: Request):
4444async def socket_send (request : Request , connectionid : str ):
4545 """Send a message to a connected socket."""
4646 LOGGER .info ("Inbound message for %s" , connectionid )
47- LOGGER .info ("Existing connections: %s" , active_connections .keys ())
47+ LOGGER .debug ("Existing connections: %s" , active_connections .keys ())
4848
4949 if connectionid not in active_connections :
5050 return text ("FAIL" , status = 500 )
@@ -61,7 +61,7 @@ async def socket_send(request: Request, connectionid: str):
6161async def socket_disconnect (request : Request , connectionid : str ):
6262 """Disconnect a socket."""
6363 LOGGER .info ("Disconnect %s" , connectionid )
64- LOGGER .info ("Existing connections: %s" , active_connections .keys ())
64+ LOGGER .debug ("Existing connections: %s" , active_connections .keys ())
6565
6666 if connectionid not in active_connections :
6767 return text ("FAIL" , status = 500 )
@@ -80,12 +80,12 @@ async def socket_handler(request: Request, websocket: Websocket):
8080 try :
8181 # register user
8282 LOGGER .info ("new client connected" )
83- socket_id = websocket .connection .id .hex
83+ socket_id = websocket .ws_proto .id .hex
8484 active_connections [socket_id ] = websocket
8585 lifetime_connections += 1
86- LOGGER .info ("Existing connections: %s" , active_connections .keys ())
87- LOGGER .info ("Added connection: %s" , socket_id )
88- LOGGER .info ("Request headers: %s" , dict (request .headers .items ()))
86+ LOGGER .debug ("Existing connections: %s" , active_connections .keys ())
87+ LOGGER .debug ("Added connection: %s" , socket_id )
88+ LOGGER .debug ("Request headers: %s" , dict (request .headers .items ()))
8989
9090 await backend .socket_connected (
9191 connection_id = socket_id ,
0 commit comments