mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-20 22:34:24 +08:00
Fix error spam when a printer of a cluster is unreachable
CURA-6057
This commit is contained in:
parent
d34b3b8585
commit
f8b67be487
@ -107,7 +107,7 @@ class DiscoveredPrintersModel(QObject):
|
|||||||
name: Optional[str] = None,
|
name: Optional[str] = None,
|
||||||
machine_type: Optional[str] = None) -> None:
|
machine_type: Optional[str] = None) -> None:
|
||||||
if ip_address not in self._discovered_printer_by_ip_dict:
|
if ip_address not in self._discovered_printer_by_ip_dict:
|
||||||
Logger.log("e", "Printer with ip [%s] is not known", ip_address)
|
Logger.log("w", "Printer with ip [%s] is not known", ip_address)
|
||||||
return
|
return
|
||||||
|
|
||||||
item = self._discovered_printer_by_ip_dict[ip_address]
|
item = self._discovered_printer_by_ip_dict[ip_address]
|
||||||
|
@ -632,6 +632,8 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
|
|||||||
printer.updateName(data["friendly_name"])
|
printer.updateName(data["friendly_name"])
|
||||||
printer.updateKey(data["uuid"])
|
printer.updateKey(data["uuid"])
|
||||||
printer.updateType(data["machine_variant"])
|
printer.updateType(data["machine_variant"])
|
||||||
|
|
||||||
|
if data["status"] != "unreachable":
|
||||||
self._application.getDiscoveredPrintersModel().updateDiscoveredPrinter(data["ip_address"],
|
self._application.getDiscoveredPrintersModel().updateDiscoveredPrinter(data["ip_address"],
|
||||||
name = data["friendly_name"],
|
name = data["friendly_name"],
|
||||||
machine_type = data["machine_variant"])
|
machine_type = data["machine_variant"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user