mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Added logging about network accessible state
CURA-1851
This commit is contained in:
parent
42bbf2b4c8
commit
0a08707922
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue