add JupyterHub.debug_proxy

This commit is contained in:
Min RK
2015-03-04 12:06:27 -08:00
parent 5a962c3aac
commit 4f3fcb92da

View File

@@ -226,6 +226,7 @@ class JupyterHub(Application):
Only override if configurable-http-proxy is not on your PATH
"""
)
debug_proxy = Bool(False, config=True, help="show debug output in configurable-http-proxy")
proxy_auth_token = Unicode(config=True,
help="""The Proxy Auth token.
@@ -721,8 +722,7 @@ class JupyterHub(Application):
'--api-port', str(self.proxy.api_server.port),
'--default-target', self.hub.server.host,
]
if False:
# if self.log_level == logging.DEBUG:
if self.debug_proxy:
cmd.extend(['--log-level', 'debug'])
if self.ssl_key:
cmd.extend(['--ssl-key', self.ssl_key])