nice log message when fully shut down

This commit is contained in:
Noah Levitt 2014-05-30 17:32:01 -07:00
parent c9d503e690
commit b2e27b99d2

View File

@ -78,5 +78,9 @@ if __name__=="__main__":
except BaseException as e:
logging.warn("caught {}".format(e))
controller.shutdown_now()
for th in threading.enumerate():
if th != threading.current_thread():
th.join()
logging.info("all finished, exiting")