mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 13:03:01 +00:00
debug logs at beginning/end of user.stop
This commit is contained in:
@@ -674,6 +674,9 @@ class User:
|
|||||||
spawner._start_pending = False
|
spawner._start_pending = False
|
||||||
spawner.stop_polling()
|
spawner.stop_polling()
|
||||||
spawner._stop_pending = True
|
spawner._stop_pending = True
|
||||||
|
|
||||||
|
self.log.debug("Stopping %s", spawner._log_name)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
api_token = spawner.api_token
|
api_token = spawner.api_token
|
||||||
status = await spawner.poll()
|
status = await spawner.poll()
|
||||||
@@ -705,6 +708,7 @@ class User:
|
|||||||
self.log.debug("Deleting oauth client %s", oauth_client.identifier)
|
self.log.debug("Deleting oauth client %s", oauth_client.identifier)
|
||||||
self.db.delete(oauth_client)
|
self.db.delete(oauth_client)
|
||||||
self.db.commit()
|
self.db.commit()
|
||||||
|
self.log.debug("Finished stopping %s", spawner._log_name)
|
||||||
finally:
|
finally:
|
||||||
spawner.orm_spawner.started = None
|
spawner.orm_spawner.started = None
|
||||||
self.db.commit()
|
self.db.commit()
|
||||||
|
Reference in New Issue
Block a user