mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 05:39:37 +08:00
Add log statement when starting plugin
Revert = Contributes CURA-10475 and CURA-10625
This commit is contained in:
parent
289b71cd9f
commit
982ba7e36b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user