Files
deb-python-falcon/falcon/bench/nuts/config.py
kgriffs 65b6539ec3 refactor(bench): Moved folder under falcon/ and added entrypoint to setup.py
This patch moves the benchmark folder down a level (under falcon/), and
cleans it up a bit. There is now an entrypoint that gets installed, called
falcon-bench, to make it easier to run benchmarks. Falcon-bench will print
out a message for every framework it can't import; by default only Falcon
can be benchmarked.
2013-04-23 17:38:44 -04:00

46 lines
1.0 KiB
Python

# Server Specific Configurations
server = {
'port': '8080',
'host': '0.0.0.0'
}
# Pecan Application Configurations
app = {
'root': 'nuts.controllers.root.RootController',
'modules': ['nuts'],
'static_root': '%(confdir)s/public',
'template_path': '%(confdir)s/nuts/templates',
'debug': False,
'errors': {
404: '/error/404',
'__force_dict__': True
}
}
logging = {
'loggers': {
'root': {'level': 'INFO', 'handlers': ['console']},
'nuts': {'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