From 4f3fcb92da8524a35d8d8264261f5c4bafd3e25a Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 4 Mar 2015 12:06:27 -0800 Subject: [PATCH] add JupyterHub.debug_proxy --- jupyterhub/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jupyterhub/app.py b/jupyterhub/app.py index c8b24081..19884ddd 100644 --- a/jupyterhub/app.py +++ b/jupyterhub/app.py @@ -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])