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:
Mateusz Mandera 2020-03-24 12:48:41 +01:00 committed by Tim Abbott
parent eb0216c5a8
commit 5ae6f4f0dd
1 changed files with 2 additions and 2 deletions

View File

@ -104,11 +104,11 @@ class Command(BaseCommand):
no_keep_alive=no_keep_alive) no_keep_alive=no_keep_alive)
http_server.listen(int(port), address=addr) http_server.listen(int(port), address=addr)
from zerver.tornado.ioloop_logging import logging_data
logging_data['port'] = port
setup_event_queue(int(port)) setup_event_queue(int(port))
add_client_gc_hook(missedmessage_hook) add_client_gc_hook(missedmessage_hook)
setup_tornado_rabbitmq() setup_tornado_rabbitmq()
from zerver.tornado.ioloop_logging import logging_data
logging_data['port'] = port
instance = ioloop.IOLoop.instance() instance = ioloop.IOLoop.instance()