mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:55:56 +08:00
Added time spent in timeout to re-check connection log
CURA-2295
This commit is contained in:
parent
b5d0b32bce
commit
f2e93bfd97
@ -237,7 +237,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
if self._last_response_time and self._connection_state_before_timeout:
|
||||
if time() - self._last_response_time > self._recreate_network_manager_time * self._recreate_network_manager_count:
|
||||
self._recreate_network_manager_count += 1
|
||||
Logger.log("d", "Timeout lasted over 30 seconds, re-checking connection.")
|
||||
Logger.log("d", "Timeout lasted over 30 seconds (%.1fs), re-checking connection.", (time() - self._last_response_time))
|
||||
self._createNetworkManager()
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user