Add some logging to debug discovery issues

CURA-2035
This commit is contained in:
fieldOfView 2016-08-09 11:22:26 +02:00
parent 70a93ac0a2
commit a0535a7aaf

View file

@ -84,6 +84,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", "Could not get information about %s" % name)
elif state_change == ServiceStateChange.Removed:
Logger.log("d", "Bonjour service removed: %s" % name)