mirror of https://github.com/zulip/zulip.git
3d39341fc2
Apparently, something in Django 1.5's changes to their default logging setup resulted in the logger 500 errors (logged in django.core.handlers.base.handle_uncaught_exception) from reaching the root logger -- they stopped at propagating at the 'django' logger. We deal with this by making our logging system handle those events in the 'django' logger ourselves (and making the related changes needed to ensure that we still log to server.log and the console everything logged by our own humbug.requests logger and anything that falls through to the root logger). This requires updating the mechanism we use in test_settings.py to silence our request logging, since now the 'humbug.requests' logger is being re-initialized by the Django logging setup, which runs after test_settings.py. While we're at it, set propagate=False in the commented-out 'django.db' logging configuration (previously, queries would be logged twice). (imported from commit 32af29084e52be1ba6f92a7952c3a3946925b46b) |
||
---|---|---|
.. | ||
__init__.py | ||
authhack.py | ||
backends.py | ||
ratelimit.py | ||
settings.py | ||
test_settings.py | ||
urls.py | ||
wsgi.py |