mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 00:37:50 -06:00
Use f-string and info method with Logger
Use f-string and info method for Logger instead of "Old Style" string formating.
This commit is contained in:
parent
fad47856e4
commit
9f3a1cfe0a
1 changed files with 2 additions and 1 deletions
|
@ -212,4 +212,5 @@ class MachineErrorChecker(QObject):
|
||||||
self._check_in_progress = False
|
self._check_in_progress = False
|
||||||
self.needToWaitForResultChanged.emit()
|
self.needToWaitForResultChanged.emit()
|
||||||
self.errorCheckFinished.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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue