settings: Fix logging settings for Casper tests.

Previously the casper server.log files basically only had tracebacks;
this should help a lot with debuggability of Casper issues.
This commit is contained in:
Tim Abbott
2017-02-17 14:35:23 -08:00
parent 5c911c44d6
commit 2dc553df0a
2 changed files with 5 additions and 4 deletions

View File

@@ -1043,6 +1043,7 @@ LOGGING = {
'propagate': False,
},
'django.server': {
'handlers': ['console', 'file'],
'propagate': False,
'filters': ['skip_200_and_304'],
},

View File

@@ -101,14 +101,14 @@ if not CASPER_TESTS:
CACHES['default'] = {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'
}
LOGGING['loggers']['zulip.requests']['level'] = 'CRITICAL'
LOGGING['loggers']['zulip.management']['level'] = 'CRITICAL'
LOGGING['loggers']['django.request'] = {'level': 'ERROR'}
LOGGING['loggers']['fakeldap'] = {'level': 'ERROR'}
# Enable file:/// hyperlink support by default in tests
ENABLE_FILE_LINKS = True
LOGGING['loggers']['zulip.requests']['level'] = 'CRITICAL'
LOGGING['loggers']['zulip.management']['level'] = 'CRITICAL'
LOGGING['loggers']['django.request'] = {'level': 'ERROR'}
LOGGING['loggers']['fakeldap'] = {'level': 'ERROR'}
LOCAL_UPLOADS_DIR = 'var/test_uploads'