Log slow_stop_timeout when hit like slow_spawn_timeout

When `slow_spawn_timeout` is hit the configured timeout value
gets logged [1]. This does the same thing when `slow_stop_timeout`
is hit.

[1] https://github.com/jupyterhub/jupyterhub/blob/1.1.0/jupyterhub/handlers/base.py#L947
This commit is contained in:
Matt Riedemann
2020-07-10 11:38:26 -05:00
parent 3d524f2092
commit d5a0202106

View File

@@ -1120,7 +1120,10 @@ class BaseHandler(RequestHandler):
except gen.TimeoutError: except gen.TimeoutError:
# hit timeout, but stop is still pending # hit timeout, but stop is still pending
self.log.warning( self.log.warning(
"User %s:%s server is slow to stop", user.name, server_name "User %s:%s server is slow to stop (timeout=%s)",
user.name,
server_name,
self.slow_stop_timeout,
) )
# return handle on the future for hooking up callbacks # return handle on the future for hooking up callbacks