a5bc34d932
This adds some test to be sure options passed to the middleware are read and user properly. This fixes bug #1099739 Change-Id: I491db4d2c7387cc2848ebefbbb579597234a82b0 Signed-off-by: Julien Danjou <julien@danjou.info>
44 lines
1.1 KiB
Python
44 lines
1.1 KiB
Python
# Server Specific Configurations
|
|
server = {
|
|
'port': '8777',
|
|
'host': '0.0.0.0'
|
|
}
|
|
|
|
# Pecan Application Configurations
|
|
app = {
|
|
'root': 'ceilometer.api.controllers.root.RootController',
|
|
'modules': ['ceilometer.api'],
|
|
'static_root': '%(confdir)s/public',
|
|
'template_path': '%(confdir)s/ceilometer/api/templates',
|
|
'debug': False,
|
|
'enable_acl': True,
|
|
}
|
|
|
|
logging = {
|
|
'loggers': {
|
|
'root': {'level': 'INFO', 'handlers': ['console']},
|
|
'ceilometer': {'level': 'DEBUG', 'handlers': ['console']},
|
|
'wsme': {'level': 'DEBUG', 'handlers': ['console']}
|
|
},
|
|
'handlers': {
|
|
'console': {
|
|
'level': 'DEBUG',
|
|
'class': 'logging.StreamHandler',
|
|
'formatter': 'simple'
|
|
}
|
|
},
|
|
'formatters': {
|
|
'simple': {
|
|
'format': ('%(asctime)s %(levelname)-5.5s [%(name)s]'
|
|
'[%(threadName)s] %(message)s')
|
|
}
|
|
},
|
|
}
|
|
|
|
# Custom Configurations must be in Python dictionary format::
|
|
#
|
|
# foo = {'bar':'baz'}
|
|
#
|
|
# All configurations are accessible at::
|
|
# pecan.conf
|