IDE: systematically log command when launching process (was not showing in case of LOCAL:// runtime being launched) svghmi
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Sat, 21 Aug 2021 11:02:09 +0200
branchsvghmi
changeset 3297 7e59bd180bc6
parent 3296 3bcd5ec67521
child 3298 e6131894be1d
IDE: systematically log command when launching process (was not showing in case of LOCAL:// runtime being launched)
util/ProcessLogger.py
--- a/util/ProcessLogger.py	Sat Aug 21 10:54:13 2021 +0200
+++ b/util/ProcessLogger.py	Sat Aug 21 11:02:09 2021 +0200
@@ -139,6 +139,9 @@
         else:
             self.timeout = None
 
+        if _debug:
+            self.logger.write("(DEBUG) launching:\n" + self.Command_str + "\n")
+
         self.Proc = subprocess.Popen(self.Command, **popenargs)
 
         self.outt = outputThread(
@@ -191,7 +194,7 @@
         if self.timeout:
             self.timeout.cancel()
         self.exitcode = ecode
-        if _debug or self.exitcode != 0:
+        if self.exitcode != 0:
             self.log_the_end(ecode, pid)
         if self.finish_callback is not None:
             self.finish_callback(self, ecode, pid)