mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 01:05:58 +08:00
Added even more logging
This commit is contained in:
parent
8572be99b9
commit
8d2e824205
@ -35,6 +35,7 @@ class DiscoverUM3Action(MachineAction):
|
|||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def startDiscovery(self):
|
def startDiscovery(self):
|
||||||
if not self._network_plugin:
|
if not self._network_plugin:
|
||||||
|
Logger.log("d", "Starting printer discovery.")
|
||||||
self._network_plugin = Application.getInstance().getOutputDeviceManager().getOutputDevicePlugin("UM3NetworkPrinting")
|
self._network_plugin = Application.getInstance().getOutputDeviceManager().getOutputDevicePlugin("UM3NetworkPrinting")
|
||||||
self._network_plugin.printerListChanged.connect(self._onPrinterDiscoveryChanged)
|
self._network_plugin.printerListChanged.connect(self._onPrinterDiscoveryChanged)
|
||||||
self.printersChanged.emit()
|
self.printersChanged.emit()
|
||||||
@ -42,6 +43,7 @@ class DiscoverUM3Action(MachineAction):
|
|||||||
## Re-filters the list of printers.
|
## Re-filters the list of printers.
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def reset(self):
|
def reset(self):
|
||||||
|
Logger.log("d", "Reset the list of found printers.")
|
||||||
self.printersChanged.emit()
|
self.printersChanged.emit()
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
@ -95,6 +97,7 @@ class DiscoverUM3Action(MachineAction):
|
|||||||
|
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def setKey(self, key):
|
def setKey(self, key):
|
||||||
|
Logger.log("d", "Attempting to set the network key of the active machine to %s", key)
|
||||||
global_container_stack = Application.getInstance().getGlobalContainerStack()
|
global_container_stack = Application.getInstance().getGlobalContainerStack()
|
||||||
if global_container_stack:
|
if global_container_stack:
|
||||||
meta_data = global_container_stack.getMetaData()
|
meta_data = global_container_stack.getMetaData()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user