Commit 0cb0acb0 by Clinton Blackburn

Disabled console logging for tests

Our test logs are so large Travis doesn't display them on the default build summary page. Most of the information logged is useless. In the event of an error, the logs will displayed alongside a stack trace thanks to nose. This change disables console logging, removing the extraneous log output.

ECOM-3054
parent f2d2262e
...@@ -14,8 +14,12 @@ INSTALLED_APPS += ( ...@@ -14,8 +14,12 @@ INSTALLED_APPS += (
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
# Disable syslog logging since we usually do not have syslog enabled in test environments.
LOGGING['handlers']['local'] = {'class': 'logging.NullHandler'} LOGGING['handlers']['local'] = {'class': 'logging.NullHandler'}
# Disable console logging to cut down on log size. Nose will capture the logs for us.
LOGGING['handlers']['console'] = {'class': 'logging.NullHandler'}
if os.getenv('DISABLE_MIGRATIONS'): if os.getenv('DISABLE_MIGRATIONS'):
class DisableMigrations(object): class DisableMigrations(object):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment