We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 112ed27 commit 2ea703cCopy full SHA for 2ea703c
tractor/ipc/_tcp.py
@@ -127,6 +127,11 @@ async def start_listener(
127
Start a TCP socket listener on the given `TCPAddress`.
128
129
'''
130
+ log.info(
131
+ f'Attempting to bind TCP socket\n'
132
+ f'>[\n'
133
+ f'|_{addr}\n'
134
+ )
135
# ?TODO, maybe we should just change the lower-level call this is
136
# using internall per-listener?
137
listeners: list[SocketListener] = await open_tcp_listeners(
@@ -140,6 +145,12 @@ async def start_listener(
140
145
assert len(listeners) == 1
141
146
listener = listeners[0]
142
147
host, port = listener.socket.getsockname()[:2]
148
+
149
150
+ f'Listening on TCP socket\n'
151
+ f'[>\n'
152
+ f' |_{addr}\n'
153
143
154
return listener
144
155
156
0 commit comments