mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 15:37:27 -06:00
Added logging to see how long compression took
CURA-2286
This commit is contained in:
parent
9de064fdba
commit
3747db0f4d
1 changed files with 2 additions and 0 deletions
|
@ -551,7 +551,9 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
|
||||
if self._use_gzip:
|
||||
file_name = "%s.gcode.gz" % Application.getInstance().getPrintInformation().jobName
|
||||
compress_time = time()
|
||||
single_string_file_data = gzip.compress(single_string_file_data.encode("utf-8"))
|
||||
Logger.log("d", "It took %s seconds to compress the file", time() - compress_time)
|
||||
# Pretend that this is a response, as zipping might take a bit of time.
|
||||
self._last_response_time = time()
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue