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:
digitalfrost 2022-08-23 19:53:50 +02:00
parent fad47856e4
commit 9f3a1cfe0a

View file

@ -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")