mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Improve log message
Instead of always reporting that it waits 30s, it reports the actual time it waits. Contributes to issue CURA-2630.
This commit is contained in:
parent
dc34b898d4
commit
8951efd140
1 changed files with 2 additions and 2 deletions
|
@ -320,7 +320,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
while time_since_last_response - self._recreate_network_manager_time * self._recreate_network_manager_count > self._recreate_network_manager_time and counter < 10:
|
while time_since_last_response - self._recreate_network_manager_time * self._recreate_network_manager_count > self._recreate_network_manager_time and counter < 10:
|
||||||
counter += 1
|
counter += 1
|
||||||
self._recreate_network_manager_count += 1
|
self._recreate_network_manager_count += 1
|
||||||
Logger.log("d", "Timeout lasted over 30 seconds (%.1fs), re-checking connection.", time_since_last_response)
|
Logger.log("d", "Timeout lasted over %.0f seconds (%.1fs), re-checking connection.", self._recreate_network_manager_time, time_since_last_response)
|
||||||
self._createNetworkManager()
|
self._createNetworkManager()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -495,7 +495,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
|
|
||||||
print_information = Application.getInstance().getPrintInformation()
|
print_information = Application.getInstance().getPrintInformation()
|
||||||
|
|
||||||
# Check if PrintCores / materials are loaded at all. Any failure in these results in an Error.
|
# Check if print cores / materials are loaded at all. Any failure in these results in an error.
|
||||||
for index in range(0, self._num_extruders):
|
for index in range(0, self._num_extruders):
|
||||||
if print_information.materialLengths[index] != 0:
|
if print_information.materialLengths[index] != 0:
|
||||||
if self._json_printer_state["heads"][0]["extruders"][index]["hotend"]["id"] == "":
|
if self._json_printer_state["heads"][0]["extruders"][index]["hotend"]["id"] == "":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue