zulip/humbug
Tim Abbott 3d39341fc2 Fix logging configuration for Django 1.5.
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)
2013-03-28 07:36:10 -04:00
..
__init__.py Initial Django commit: basic account, zephyr stream, narrowing, etc. 2012-08-28 12:44:51 -04:00
authhack.py Fix logging in with email addresses long than 30 characters. 2013-01-16 17:02:06 -05:00
backends.py Use the User/UserProfile caches for Django requests too. 2013-03-15 18:09:34 -04:00
ratelimit.py settings: Add docs on how to properly test our email handler. 2013-03-15 14:53:17 -04:00
settings.py Fix logging configuration for Django 1.5. 2013-03-28 07:36:10 -04:00
test_settings.py Fix logging configuration for Django 1.5. 2013-03-28 07:36:10 -04:00
urls.py Reduce repetition in urls.py through pattern prefixes. 2013-03-25 11:36:48 -04:00
wsgi.py Remove more commented out example code 2012-10-29 23:21:00 -04:00