5b0dde337b
- add a logger so we get exceptions - setup the port to 8777 so 'pecan serve config.py' works normally Change-Id: I7374a34ae5534d7d4127e4b405daa11cab5f5547
43 lines
1.0 KiB
Python
43 lines
1.0 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,
|
|
}
|
|
|
|
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
|