mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Backend now logs return codes of processes
CURA-1133
This commit is contained in:
parent
5b04787106
commit
3663f8ca20
1 changed files with 4 additions and 3 deletions
|
@ -162,11 +162,12 @@ class CuraEngineBackend(Backend):
|
||||||
Logger.log("d", "Killing engine process")
|
Logger.log("d", "Killing engine process")
|
||||||
try:
|
try:
|
||||||
self._process.terminate()
|
self._process.terminate()
|
||||||
|
Logger.log("d", "Engine process is killed. Recieved return code %s", self._process.wait())
|
||||||
self._process = None
|
self._process = None
|
||||||
#self._createSocket() # Re create the socket
|
#self._createSocket() # Re create the socket
|
||||||
except Exception as e: # terminating a process that is already terminating causes an exception, silently ignore this.
|
except Exception as e: # terminating a process that is already terminating causes an exception, silently ignore this.
|
||||||
Logger.log("d", "Exception occured while trying to kill the engine %s", str(e))
|
Logger.log("d", "Exception occured while trying to kill the engine %s", str(e))
|
||||||
Logger.log("d", "Engine process is killed")
|
|
||||||
|
|
||||||
def _onStartSliceCompleted(self, job):
|
def _onStartSliceCompleted(self, job):
|
||||||
if job.getError() or job.getResult() != True:
|
if job.getError() or job.getResult() != True:
|
||||||
|
@ -287,7 +288,7 @@ class CuraEngineBackend(Backend):
|
||||||
self._terminate()
|
self._terminate()
|
||||||
|
|
||||||
def _onBackendQuit(self):
|
def _onBackendQuit(self):
|
||||||
if not self._restart:
|
if not self._restart and self._process:
|
||||||
Logger.log("d", "Backend quitted. Resetting process and socket.")
|
Logger.log("d", "Backend quit with return code %s. Resetting process and socket.", self._process.wait())
|
||||||
self._process = None
|
self._process = None
|
||||||
self._createSocket()
|
self._createSocket()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue