From e620d8fd9a5262e3f778dff5dd4cebd6e3c9d45c Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 17 Mar 2017 10:30:04 +0100 Subject: [PATCH] Added extra logging to authentication loading to indicate difference between no auth at all or (some) loaded auth --- plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py index a0eb253dba..25170d874d 100644 --- a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py +++ b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py @@ -726,7 +726,12 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): ## Check if this machine was authenticated before. self._authentication_id = Application.getInstance().getGlobalContainerStack().getMetaDataEntry("network_authentication_id", None) self._authentication_key = Application.getInstance().getGlobalContainerStack().getMetaDataEntry("network_authentication_key", None) - Logger.log("d", "Loaded authentication id %s from the metadata entry", self._authentication_id) + + if self._authentication_id is None and self._authentication_key is None: + Logger.log("d", "No authentication found in metadata.") + else: + Logger.log("d", "Loaded authentication id %s from the metadata entry", self._authentication_id) + self._update_timer.start() ## Stop requesting data from printer