From 51bd1b12a10b2e8008f94ce5602bffb27ba2c7df Mon Sep 17 00:00:00 2001 From: Menghan Date: Tue, 14 Oct 2014 23:01:45 +0800 Subject: [PATCH] remove option --debug and update documents --- docs/source/settings.rst | 19 ++++++++----------- examples/example_config.py | 9 --------- gunicorn/config.py | 15 --------------- 3 files changed, 8 insertions(+), 35 deletions(-) diff --git a/docs/source/settings.rst b/docs/source/settings.rst index ff273ceb..9b2f1763 100644 --- a/docs/source/settings.rst +++ b/docs/source/settings.rst @@ -244,17 +244,6 @@ on the allowed size of an HTTP request header field. Debugging --------- -debug -~~~~~ - -* ``--debug`` -* ``False`` - -Turn on debugging in the server. - -**DEPRECATED**: This no functionality was removed after v18.0. -This option is now a no-op. - reload ~~~~~~ @@ -959,3 +948,11 @@ statsd_host host:port of the statsd server to log to +statsd_prefix +~~~~~~~~~~~~~ + +* ``--statsd-prefix STATSD_PREFIX`` +* ```` + +prefix to use when emitting statsd metrics (a trailing . is added, if not provided) + diff --git a/examples/example_config.py b/examples/example_config.py index 5d2ef60c..2878ada8 100644 --- a/examples/example_config.py +++ b/examples/example_config.py @@ -75,14 +75,6 @@ worker_connections = 1000 timeout = 30 keepalive = 2 -# -# Debugging -# -# debug - Turn on debugging in the server. This limits the number of -# worker processes to 1 and changes some error handling that's -# sent to clients. -# -# True or False # # spew - Install a trace function that spews every line of Python # that is executed when running the server. This is the @@ -91,7 +83,6 @@ keepalive = 2 # True or False # -debug = False spew = False # diff --git a/gunicorn/config.py b/gunicorn/config.py index e9e0c6d6..2d73d111 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -755,21 +755,6 @@ class LimitRequestFieldSize(Setting): """ -class Debug(Setting): - name = "debug" - section = "Debugging" - cli = ["--debug"] - validator = validate_bool - action = "store_true" - default = False - desc = """\ - Turn on debugging in the server. - - **DEPRECATED**: This no functionality was removed after v18.0. - This option is now a no-op. - """ - - class Reload(Setting): name = "reload" section = 'Debugging'