mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 09:25:12 +00:00
Move ZMQ bind address logging to TFWServer
This commit is contained in:
@ -16,10 +16,14 @@ class TFWServer:
|
||||
SUB socket.
|
||||
"""
|
||||
def __init__(self):
|
||||
downlink_bind_addr = f'tcp://*:{TFWENV.PULL_PORT}'
|
||||
uplink_bind_addr = f'tcp://*:{TFWENV.PUB_PORT}'
|
||||
self._listener = ZMQListener(
|
||||
downlink_bind_addr=f'tcp://*:{TFWENV.PULL_PORT}',
|
||||
uplink_bind_addr=f'tcp://*:{TFWENV.PUB_PORT}'
|
||||
downlink_bind_addr=downlink_bind_addr,
|
||||
uplink_bind_addr=uplink_bind_addr
|
||||
)
|
||||
LOG.debug('Pull socket bound to %s', downlink_bind_addr)
|
||||
LOG.debug('Pub socket bound to %s', uplink_bind_addr)
|
||||
self.application = Application([(
|
||||
r'/ws', ZMQWebSocketRouter, {
|
||||
'listener': self._listener,
|
||||
|
Reference in New Issue
Block a user