Skip to content

Commit

Permalink
Add hidden --verbose-debugging flag to mod_wsgi-express.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Apr 14, 2016
1 parent c609596 commit 7499a55
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ def find_mimetypes():
WSGIPythonHome '%(python_home)s'
WSGIVerboseDebugging '%(verbose_debugging_flag)s'
<IfDefine !ONE_PROCESS>
WSGIRestrictEmbedded On
WSGISocketPrefix %(server_root)s/wsgi
Expand Down Expand Up @@ -2243,6 +2245,9 @@ def check_percentage(option, opt_str, value, parser):
help='Flag indicating whether the web server startup log should '
'be enabled. Defaults to being disabled.'),

optparse.make_option('--verbose-debugging', action='store_true',
dest='verbose_debugging', help=optparse.SUPPRESS_HELP),

optparse.make_option('--log-to-terminal', action='store_true',
default=False, help='Flag indicating whether logs should '
'be directed back to the terminal. Defaults to being disabled. '
Expand Down Expand Up @@ -2879,6 +2884,11 @@ def _cmd_setup_server(command, args, options):
options['httpd_arguments_list'].append('-E')
options['httpd_arguments_list'].append(options['startup_log_file'])

if options['verbose_debugging']:
options['verbose_debugging_flag'] = 'On'
else:
options['verbose_debugging_flag'] = 'Off'

if options['server_name']:
host = options['server_name']
else:
Expand Down

0 comments on commit 7499a55

Please sign in to comment.