Add logging configuration for iso8601 module

iso8601 module outputs log messages but it is not useful for users,
so this commit assigns null log handler to iso8601 module.
This change suppresses iso8601 log messages during unit tests.

Also moves openstack_dashboard related logging config for unit test
from horizon to openstack_dashboard.

Change-Id: I01cf12688118e2137382b8dc7a050b3587749354
Closes-Bug: #1250554
This commit is contained in:
Akihiro MOTOKI 2013-11-13 04:14:13 +09:00
parent 0a8c85221e
commit 882fad2d95
1 changed files with 28 additions and 4 deletions

View File

@ -121,10 +121,34 @@ OPENSTACK_IMAGE_BACKEND = {
]
}
LOGGING['loggers']['openstack_dashboard'] = {
'handlers': ['test'],
'propagate': False,
}
LOGGING['loggers'].update(
{
'openstack_dashboard': {
'handlers': ['test'],
'propagate': False,
},
'novaclient': {
'handlers': ['test'],
'propagate': False,
},
'keystoneclient': {
'handlers': ['test'],
'propagate': False,
},
'glanceclient': {
'handlers': ['test'],
'propagate': False,
},
'neutronclient': {
'handlers': ['test'],
'propagate': False,
},
'iso8601': {
'handlers': ['null'],
'propagate': False,
},
}
)
SECURITY_GROUP_RULES = {
'all_tcp': {