Merge "Suppress unnecessary logging output in UTs"

This commit is contained in:
Zuul 2018-03-09 17:26:09 +00:00 committed by Gerrit Code Review
commit 397051c875
2 changed files with 29 additions and 0 deletions

View File

@ -73,6 +73,27 @@ TEMPLATES = [
},
]
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'logging.NullHandler',
},
'test': {
'level': 'ERROR',
'class': 'logging.StreamHandler',
}
},
'loggers': {
'openstack_auth': {
'handlers': ['test'],
'propagate': False,
},
}
}
AUTH_USER_MODEL = 'openstack_auth.User'
LOGGING = {

View File

@ -224,6 +224,14 @@ LOGGING['loggers'].update(
'handlers': ['test'],
'propagate': False,
},
'oslo_policy': {
'handlers': ['test'],
'propagate': False,
},
'stevedore': {
'handlers': ['test'],
'propagate': False,
},
'iso8601': {
'handlers': ['null'],
'propagate': False,