mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #8576: logging updated to remove usage of find_unused_port().
This commit is contained in:
parent
c1f5c2f333
commit
27a1370ae0
3 changed files with 9 additions and 4 deletions
|
@ -873,6 +873,8 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT):
|
|||
def run(self):
|
||||
server = self.rcvr(port=self.port, handler=self.hdlr,
|
||||
ready=self.ready)
|
||||
if self.port == 0:
|
||||
self.port = server.server_address[1]
|
||||
self.ready.set()
|
||||
global _listener
|
||||
logging._acquireLock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue