mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
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:
@@ -1043,6 +1043,7 @@ LOGGING = {
|
||||
'propagate': False,
|
||||
},
|
||||
'django.server': {
|
||||
'handlers': ['console', 'file'],
|
||||
'propagate': False,
|
||||
'filters': ['skip_200_and_304'],
|
||||
},
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user