Add log statement when starting plugin

Revert =

Contributes CURA-10475 and CURA-10625
This commit is contained in:
Jelle Spijker 2023-07-18 11:17:15 +02:00
parent 289b71cd9f
commit 982ba7e36b
No known key found for this signature in database
GPG Key ID: 034D1C0527888B65

View File

@ -41,7 +41,7 @@ class BackendPlugin(PluginObject):
if not self._plugin_command or "--port" in self._plugin_command: if not self._plugin_command or "--port" in self._plugin_command:
return self._plugin_command or [] return self._plugin_command or []
return self._plugin_command + ["--port=", str(self.__port)] return self._plugin_command + ["--port", str(self.__port)]
def start(self) -> bool: def start(self) -> bool:
""" """
@ -52,6 +52,7 @@ class BackendPlugin(PluginObject):
try: try:
# STDIN needs to be None because we provide no input, but communicate via a local socket instead. # STDIN needs to be None because we provide no input, but communicate via a local socket instead.
# The NUL device sometimes doesn't exist on some computers. # The NUL device sometimes doesn't exist on some computers.
Logger.info(f"Starting backend_plugin [{self._plugin_id}] with command: {self._validatePluginCommand()}")
self._process = subprocess.Popen(self._validatePluginCommand(), stdin = None) self._process = subprocess.Popen(self._validatePluginCommand(), stdin = None)
self._is_running = True self._is_running = True
return True return True