Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def start(self):
if self.id is None:
self.id = str(uuid.uuid4)
full_log_path = os.path.join(GetLogDir(), self.id + ".full.log")
self.__run_backup = self.run
self.run = self.__run
sys.stdout = ThreadPrinter(full_log_path)
threading.Thread.start(self)