Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordigitalfrost <gerald.hofmaier@gmail.com>2022-08-23 20:53:50 +0300
committerdigitalfrost <gerald.hofmaier@gmail.com>2022-08-23 20:53:50 +0300
commit9f3a1cfe0ae3810e41ddba09f2ec836f12b2f6ec (patch)
treea63eaaefc7e313b7b806124a81aaa060813b0e78 /cura/Machines
parentfad47856e49ac4c9e4052e5fb9f9c581335ebc30 (diff)
Use f-string and info method with Logger
Use f-string and info method for Logger instead of "Old Style" string formating.
Diffstat (limited to 'cura/Machines')
-rw-r--r--cura/Machines/MachineErrorChecker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cura/Machines/MachineErrorChecker.py b/cura/Machines/MachineErrorChecker.py
index df335eddb4..a770e63785 100644
--- a/cura/Machines/MachineErrorChecker.py
+++ b/cura/Machines/MachineErrorChecker.py
@@ -212,4 +212,5 @@ class MachineErrorChecker(QObject):
self._check_in_progress = False
self.needToWaitForResultChanged.emit()
self.errorCheckFinished.emit()
- Logger.log("i", "Error check finished, result = %s, time = %0.1fs", result, time.time() - self._check_start_time)
+ execution_time = time.time() - self._check_start_time
+ Logger.info(f"Error check finished, result = {result}, time = {execution_time:.2f}s")