Skip to content

Commit

Permalink
Silences logging output during test runs.
Browse files Browse the repository at this point in the history
Fixes bug 914592.

Change-Id: Idc2d9a0a85424ccf45b6ef8f84daaea1d1e56549
  • Loading branch information
gabrielhurley authored and Paul McMillan committed Jan 11, 2012
1 parent 096bee0 commit cf7d2c1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions horizon/horizon/tests/testsettings.py
Expand Up @@ -105,3 +105,41 @@
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_ADDRESS
OPENSTACK_KEYSTONE_ADMIN_URL = "http://%s:35357/v2.0" % OPENSTACK_ADDRESS
OPENSTACK_KEYSTONE_DEFAULT_ROLE_ID = "2"

# Silence logging output during tests.
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'django.utils.log.NullHandler',
},
},
'loggers': {
'django.db.backends': {
'handlers': ['null'],
'propagate': False,
},
'horizon': {
'handlers': ['null'],
'propagate': False,
},
'novaclient': {
'handlers': ['null'],
'propagate': False,
},
'keystoneclient': {
'handlers': ['null'],
'propagate': False,
},
'quantum': {
'handlers': ['null'],
'propagate': False,
},
'nose.plugins.manager': {
'handlers': ['null'],
'propagate': False,
}
}
}

0 comments on commit cf7d2c1

Please sign in to comment.