mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 03:23:50 +00:00
runtornado: Remove some unnecessary startup logging.
This significantly cleans up the run-dev.py output.
This commit is contained in:
@@ -69,7 +69,6 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
xheaders = options.get('xheaders', True)
|
xheaders = options.get('xheaders', True)
|
||||||
no_keep_alive = options.get('no_keep_alive', False)
|
no_keep_alive = options.get('no_keep_alive', False)
|
||||||
quit_command = 'CTRL-C'
|
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
logging.basicConfig(level=logging.INFO,
|
logging.basicConfig(level=logging.INFO,
|
||||||
@@ -80,11 +79,10 @@ class Command(BaseCommand):
|
|||||||
from django.utils import translation
|
from django.utils import translation
|
||||||
translation.activate(settings.LANGUAGE_CODE)
|
translation.activate(settings.LANGUAGE_CODE)
|
||||||
|
|
||||||
print("Validating Django models.py...")
|
# We pass display_num_errors=False, since Django will
|
||||||
self.check(display_num_errors=True)
|
# likely display similar output anyway.
|
||||||
print("\nDjango version %s" % (django.get_version(),))
|
self.check(display_num_errors=False)
|
||||||
print("Tornado server is running at http://%s:%s/" % (addr, port))
|
print("Tornado server is running at http://%s:%s/" % (addr, port))
|
||||||
print("Quit the server with %s." % (quit_command,))
|
|
||||||
|
|
||||||
if settings.USING_RABBITMQ:
|
if settings.USING_RABBITMQ:
|
||||||
queue_client = get_queue_client()
|
queue_client = get_queue_client()
|
||||||
|
|||||||
Reference in New Issue
Block a user