JupyterHub log level not working as expected

Hi :wave:
I’m trying to figure out how I can suppress all the command output from Jupyterhub except for errors. Almost everything gets sent to stderr. I’ve set JupyterHub.log_level and Application.log_level to ‘ERROR’, but I still get this output on startup:

21:11:46.618 [ConfigProxy] info: Proxying http://*:8000 to (no default)
21:11:46.619 [ConfigProxy] info: Proxy API at http://127.0.0.1:8001/api/routes
21:11:46.914 [ConfigProxy] info: 200 GET /api/routes
21:11:46.916 [ConfigProxy] info: 200 GET /api/routes
21:11:46.920 [ConfigProxy] info: Adding route / -> http://127.0.0.1:8081
21:11:46.921 [ConfigProxy] info: Route added / -> http://127.0.0.1:8081
21:11:46.922 [ConfigProxy] info: 201 POST /api/routes/

Where do the ConfigProxy logs come from, and is there a way to configure them?

Have you been able to solve this? Got the same Problem >_<

ConfigProxy is an external proxy run by JupyterHub in a separate process. Unfortunately the only options at the moment are to enable or disable debug logging:

Ok, thank you! How do I set this in my jupyterhub_config.py?

c.ConfigurableHTTPProxy.debug = True|False

That won’t help you though since the debug logging is disabled by default, so I’ve opened a PR

1 Like

@manics : Thank you, that is pretty nice. Is there also a way to set the logging_config? I would expect this to work normally :/.

c.Application.logging_config = logging_config
c.ConfigurableHTTPProxy.logging_config = logging_config

I don’t know. Maybe someone with more knowledge of the Traitlets library knows?