debug logs at beginning/end of user.stop

This commit is contained in:
Min RK
2019-02-11 15:02:20 +01:00
parent b196dd2bea
commit 297f6988bd

View File

@@ -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()