Added logging about network accessible state

CURA-1851
This commit is contained in:
Jaime van Kessel 2016-08-19 15:30:34 +02:00
parent 42bbf2b4c8
commit 0a08707922

View file

@ -88,6 +88,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
self._manager = QNetworkAccessManager()
self._manager.finished.connect(self._onFinished)
self._manager.authenticationRequired.connect(self._onAuthenticationRequired)
self._manager.networkAccessibleChanged.connect(self._onNetworkAccesibleChanged) # for debug purposes
self._post_request = None
self._post_reply = None
@ -142,6 +143,9 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
self._last_command = ""
def _onNetworkAccesibleChanged(self, accessible):
Logger.log("d", "Network accessible state changed to: %s", accessible)
def _onAuthenticationTimer(self):
self._authentication_counter += 1
self._authentication_requested_message.setProgress(self._authentication_counter / self._max_authentication_counter * 100)