logging: Use django.server to filter 200 and 304.

Previously, we were monkey patching the runserver command
in zerver/management/commands/rundjango.py for this.
This commit is contained in:
Umair Khan
2017-01-18 16:52:01 +05:00
committed by Tim Abbott
parent 85fbdd6b2d
commit ef0d2a4bb5
4 changed files with 20 additions and 17 deletions

View File

@@ -149,7 +149,7 @@ pid_file.close()
# Pass --nostatic because we configure static serving ourselves in
# zulip/urls.py.
cmds = [['./tools/compile-handlebars-templates', 'forever'],
['./manage.py', 'rundjango'] +
['./manage.py', 'runserver'] +
manage_args + ['127.0.0.1:%d' % (django_port,)],
['env', 'PYTHONUNBUFFERED=1', './manage.py', 'runtornado'] +
manage_args + ['127.0.0.1:%d' % (tornado_port,)],