mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 06:13:13 +08: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
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user