def run(self,*args,**kwargs): log._disallow_tracing_control() try: r = _RealProcess.run(self, *args, **kwargs) finally: if log.trace_is_enabled(): log.trace_flush() # todo, reduce need for this... return r
def run(self, *args, **kwargs): log._disallow_tracing_control() try: r = _RealProcess.run(self, *args, **kwargs) finally: if log.trace_is_enabled(): log.trace_flush() # todo, reduce need for this... return r
def terminate(self): if log.trace_is_enabled(): # give the flush a chance to finish --> TODO: find some other way. time.sleep(0.25) self._proc.terminate()
def terminate(self): if log.trace_is_enabled(): time.sleep( 0.25 ) # give the flush a chance to finish --> ergh, find some other way self._proc.terminate()
def terminate(self): if log.trace_is_enabled(): time.sleep(0.25) # give the flush a chance to finish --> ergh, find some other way self._proc.terminate()