Added debug information
This commit is contained in:
parent
80130b4898
commit
201b5ed2c0
|
|
@ -264,13 +264,13 @@ class SysCommandWorker:
|
||||||
if len(args) >= 2 and args[1]:
|
if len(args) >= 2 and args[1]:
|
||||||
log(args[1], level=logging.DEBUG, fg='red')
|
log(args[1], level=logging.DEBUG, fg='red')
|
||||||
|
|
||||||
if self.exit_code != 0:
|
if self.exit_code is not None and self.exit_code != 0:
|
||||||
raise SysCallError(f"{self.cmd} exited with abnormal exit code [{self.exit_code}]: {self._trace_log[-500:]}", self.exit_code)
|
raise SysCallError(f"{self.cmd} exited with abnormal exit code [{self.exit_code}]: {self._trace_log[-500:]}", self.exit_code)
|
||||||
|
|
||||||
def is_alive(self) -> bool:
|
def is_alive(self) -> bool:
|
||||||
self.poll()
|
self.poll()
|
||||||
|
|
||||||
if self.started and self.ended is None:
|
if self.started and self.exit_code is not None:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue