jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.03k stars 339 forks source link

avoid registering duplicate log handlers #862

Closed minrk closed 1 year ago

minrk commented 1 year ago

init_logging is called many times in test_config, which has been registering numerous duplicate log handlers, attached to stderr that's closed between tests

minrk commented 1 year ago

This is causing lots of noise and "ValueError: I/O operation on closed file.", e.g. here