mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-24 05:49:35 -04:00
nice log message when fully shut down
This commit is contained in:
parent
c9d503e690
commit
b2e27b99d2
1 changed files with 4 additions and 0 deletions
|
@ -78,5 +78,9 @@ if __name__=="__main__":
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
logging.warn("caught {}".format(e))
|
logging.warn("caught {}".format(e))
|
||||||
controller.shutdown_now()
|
controller.shutdown_now()
|
||||||
|
for th in threading.enumerate():
|
||||||
|
if th != threading.current_thread():
|
||||||
|
th.join()
|
||||||
|
|
||||||
|
logging.info("all finished, exiting")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue