Cleanly terminate logger on cleanup

This commit is contained in:
Joshua Boniface 2021-07-18 18:57:44 -04:00
parent a088aa4484
commit 3a2478ee0c
1 changed files with 3 additions and 1 deletions

View File

@ -697,7 +697,7 @@ else:
# Cleanup function
def cleanup():
global zkhandler, update_timer, d_domain
global logger, zkhandler, update_timer, d_domain
logger.out('Terminating pvcnoded and cleaning up', state='s')
@ -761,6 +761,8 @@ def cleanup():
pass
logger.out('Terminated pvc daemon', state='s')
del logger
os._exit(0)