Skip to content

Commit

Permalink
Debug tests, take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Mar 28, 2018
1 parent 3bde44c commit 73fee66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/ZEO/_forker.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,13 @@ def runner(config, qin, qout, timeout=None,
server.clear_socket()
server.create_server()
logger.debug('SERVER CREATED')
logger.debug('SERVER CONFIG: %s', config)
if ZEO4_SERVER:
qout.put(server.server.addr)
addr = server.server.addr
else:
qout.put(server.server.acceptor.addr)
logger.debug('ADDRESS SENT')
addr = server.server.acceptor.addr
qout.put(addr)
logger.debug('ADDRESS SENT: %s', addr)
thread = threading.Thread(
target=server.server.loop, kwargs=dict(timeout=.2),
name=(None if name is None else name + '-server'),
Expand Down
2 changes: 1 addition & 1 deletion src/ZEO/asyncio/mtacceptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
_has_dualstack = True
s.close()
del s

print(">>> HAS DUALSTACK:", _has_dualstack)
import logging

logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 73fee66

Please sign in to comment.