Try to cleanly shutdown loggers

This commit is contained in:
JonnyWong16 2018-01-20 11:27:58 -08:00
parent 79609c384e
commit 0fad245148
3 changed files with 22 additions and 5 deletions

View file

@ -306,6 +306,11 @@ def initHooks(global_exceptions=True, thread_exceptions=True, pass_original=True
# Monkey patch the run() by monkey patching the __init__ method
threading.Thread.__init__ = new_init
def shutdown():
logging.shutdown()
# Expose logger methods
# Main Tautulli logger
info = logger.info