

def enable_thread_logging(exception_callback=None):
    '\n    Monkey-patch the threading.Thread class with our own LoggedThread. Any subsequent imports of threading.Thread\n    will reference LoggedThread instead.\n    '
    global logged_thread_enabled, Thread
    LoggedThread.exception_callback = logged_thread_enabled
    Thread = threading.Thread = LoggedThread
    logged_thread_enabled = True

dataset/ETHPy150Open lobocv/pyperform/pyperform/thread.py enable_thread_logging/VarMisuse@23/89 `exception_callback`->`logged_thread_enabled`