Remove pecan_debug option

There's no need to have this exposed to users.

Change-Id: Ie2cc75f167421fcc306f35bcd8e1a797fe7d35b1
This commit is contained in:
Julien Danjou 2016-10-10 10:03:30 +02:00
parent f1f24faee0
commit dc07901fbc
5 changed files with 3 additions and 18 deletions

View File

@ -177,7 +177,6 @@ function configure_panko {
fi
if is_service_enabled panko-api && [ "$PANKO_USE_MOD_WSGI" == "True" ]; then
iniset $PANKO_CONF api pecan_debug "False"
_panko_config_apache_wsgi
fi

View File

@ -51,16 +51,3 @@ work with a copy of panko installed via devstack.
On rpm-based systems::
$ service httpd reload
Limitation
==========
As Panko is using Pecan and Pecan's DebugMiddleware doesn't support
multiple processes, there is no way to set debug mode in the multiprocessing
case. To allow multiple processes the DebugMiddleware may be turned off by
setting ``pecan_debug`` to ``False`` in the ``api`` section of
``panko.conf``.
For other WSGI setup you can refer to the `pecan deployment`_ documentation.
.. _`pecan deployment`: http://pecan.readthedocs.org/en/latest/deployment.html

View File

@ -47,7 +47,6 @@ def setup_app(pecan_config=None, conf=None):
app = pecan.make_app(
pecan_config['app']['root'],
debug=conf.api.pecan_debug,
hooks=app_hooks,
wrap_app=middleware.ParsableErrorMiddleware,
guess_content_type_from_ext=False

View File

@ -29,9 +29,6 @@ def list_opts():
]),
('api',
[
cfg.BoolOpt('pecan_debug',
default=False,
help='Toggle Pecan Debug Middleware.'),
cfg.IntOpt('default_api_return_limit',
min=1,
default=100,

View File

@ -0,0 +1,3 @@
---
upgrade:
- The api.pecan_debug option has been removed.