From 297f6988bd12ee4fa98ce24ee5d470adf77c5ec6 Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 11 Feb 2019 15:02:20 +0100 Subject: [PATCH] debug logs at beginning/end of user.stop --- jupyterhub/user.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jupyterhub/user.py b/jupyterhub/user.py index 5944ade5..8248afaf 100644 --- a/jupyterhub/user.py +++ b/jupyterhub/user.py @@ -674,6 +674,9 @@ class User: spawner._start_pending = False spawner.stop_polling() spawner._stop_pending = True + + self.log.debug("Stopping %s", spawner._log_name) + try: api_token = spawner.api_token status = await spawner.poll() @@ -705,6 +708,7 @@ class User: self.log.debug("Deleting oauth client %s", oauth_client.identifier) self.db.delete(oauth_client) self.db.commit() + self.log.debug("Finished stopping %s", spawner._log_name) finally: spawner.orm_spawner.started = None self.db.commit()