mirror of https://github.com/zulip/zulip.git
tornado: Put port in logging_data before setup_event_queue in runtornado.
setup_event_queue() generates some logs about loaded event queues, and it's good for the logging system to have access to the port at that point already.
This commit is contained in:
parent
eb0216c5a8
commit
5ae6f4f0dd
|
@ -104,11 +104,11 @@ class Command(BaseCommand):
|
|||
no_keep_alive=no_keep_alive)
|
||||
http_server.listen(int(port), address=addr)
|
||||
|
||||
from zerver.tornado.ioloop_logging import logging_data
|
||||
logging_data['port'] = port
|
||||
setup_event_queue(int(port))
|
||||
add_client_gc_hook(missedmessage_hook)
|
||||
setup_tornado_rabbitmq()
|
||||
from zerver.tornado.ioloop_logging import logging_data
|
||||
logging_data['port'] = port
|
||||
|
||||
instance = ioloop.IOLoop.instance()
|
||||
|
||||
|
|
Loading…
Reference in New Issue