jupyterhub / sudospawner

Spawn JupyterHub single-user servers with sudo
BSD 3-Clause "New" or "Revised" License
50 stars 41 forks source link

Set log level for mediator #48

Closed Siecje closed 6 years ago

Siecje commented 6 years ago

I want to set the log level for JupyterHub.

There doesn't seem to be a way to set the log level of the sudo spawner mediator.

In my jupyterhub_config.py I have

c.JupyterHub.log_level = 'WARN'
c.ConfigurableHTTPProxy.command = ['configurable-http-proxy', '--log-level=WARN']
c.Spawner.cmd = ['jupyterhub-singleuser', '--log-level=WARN']

I have stdout and stderr going to syslog. I still see debug messages from jupyterhub mediator.

Feb 13 15:57:59 box kern.debug jupyterhub[1220]: [I 180213 15:57:22 mediator:89] Spawning /boot/tp/python3/bin/sudospawner-singleuser --port=54907 '--notebook-dir="/boot/dd/jupyterhub/notebooks/cody2"' [I 2018-02-13 15:57:22.748 SingleUserNotebookApp singleuser:365] Starting jupyterhub-singleuser server version 0.8.1 [I 2018-02-13 15:57:22.752 SingleUserNotebookApp notebookapp:1585] Serving notebooks from local directory: /boot/dd/jupyterhub/notebooks/cody2 [I 2018-02-13 15:57:22.752 SingleUserNotebookApp notebookapp: