mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-31 20:32:00 +08:00
Adding debug message when type != 'printer'
Just for the case we lose a device at this point.
This commit is contained in:
parent
bf670d325a
commit
a52c62f6bb
@ -194,6 +194,8 @@ class NetworkPrinterOutputDevicePlugin(OutputDevicePlugin):
|
||||
if info.properties.get(b"type", None) == b'printer':
|
||||
address = '.'.join(map(lambda n: str(n), info.address))
|
||||
self.addPrinterSignal.emit(str(name), address, info.properties)
|
||||
else:
|
||||
Logger.log("w", "The type of the found device is '%s', not 'printer'! Ignoring.." % name)
|
||||
else:
|
||||
Logger.log("w", "Could not get information about %s" % name)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user