From 2ea703cc75cc410ab4721f7f3661c444762858d0 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 11 Jun 2025 11:29:23 -0400 Subject: [PATCH] Log listener bind status for TCP as for UDS --- tractor/ipc/_tcp.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tractor/ipc/_tcp.py b/tractor/ipc/_tcp.py index b534b143..4de04c25 100644 --- a/tractor/ipc/_tcp.py +++ b/tractor/ipc/_tcp.py @@ -127,6 +127,11 @@ async def start_listener( Start a TCP socket listener on the given `TCPAddress`. ''' + log.info( + f'Attempting to bind TCP socket\n' + f'>[\n' + f'|_{addr}\n' + ) # ?TODO, maybe we should just change the lower-level call this is # using internall per-listener? listeners: list[SocketListener] = await open_tcp_listeners( @@ -140,6 +145,12 @@ async def start_listener( assert len(listeners) == 1 listener = listeners[0] host, port = listener.socket.getsockname()[:2] + + log.info( + f'Listening on TCP socket\n' + f'[>\n' + f' |_{addr}\n' + ) return listener