Log the remote ip address for incoming websocket connections when debug is on (#40581)
This commit is contained in:
parent
a42736e437
commit
35cfc80dd7
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ class WebSocketHandler:
|
||||||
request = self.request
|
request = self.request
|
||||||
wsock = self.wsock = web.WebSocketResponse(heartbeat=55)
|
wsock = self.wsock = web.WebSocketResponse(heartbeat=55)
|
||||||
await wsock.prepare(request)
|
await wsock.prepare(request)
|
||||||
self._logger.debug("Connected")
|
self._logger.debug("Connected from %s", request.remote)
|
||||||
self._handle_task = asyncio.current_task()
|
self._handle_task = asyncio.current_task()
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue