diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2019-08-15 14:03:28 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2019-08-15 14:03:51 +0300 |
commit | f20696966d1ff7fdd69e6d3b7b261ec5512ba04d (patch) | |
tree | ee61bd22abd2dd56c376f39925f04b6fc8d3f228 /plugins/FirmwareUpdateChecker | |
parent | f440535581c1b96511cc24a440cea14d2ef755ac (diff) |
Fix logging in FirmwareUpdateChecker
Diffstat (limited to 'plugins/FirmwareUpdateChecker')
-rw-r--r-- | plugins/FirmwareUpdateChecker/FirmwareUpdateCheckerJob.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/FirmwareUpdateChecker/FirmwareUpdateCheckerJob.py b/plugins/FirmwareUpdateChecker/FirmwareUpdateCheckerJob.py index ca4d4d964a..f286662bc4 100644 --- a/plugins/FirmwareUpdateChecker/FirmwareUpdateCheckerJob.py +++ b/plugins/FirmwareUpdateChecker/FirmwareUpdateCheckerJob.py @@ -111,7 +111,7 @@ class FirmwareUpdateCheckerJob(Job): # because the new version of Cura will be release before the firmware and we don't want to # notify the user when no new firmware version is available. if (checked_version != "") and (checked_version != current_version): - Logger.log("i", "Showing firmware update message for new version: {version}".format(current_version)) + Logger.log("i", "Showing firmware update message for new version: {version}".format(version = current_version)) message = FirmwareUpdateCheckerMessage(machine_id, self._machine_name, self._lookups.getRedirectUserUrl()) message.actionTriggered.connect(self._callback) @@ -120,7 +120,7 @@ class FirmwareUpdateCheckerJob(Job): Logger.log("i", "No machine with name {0} in list of firmware to check.".format(self._machine_name)) except Exception as e: - Logger.log("w", "Failed to check for new version: %s", e) + Logger.logException("w", "Failed to check for new version: %s", e) if not self.silent: Message(i18n_catalog.i18nc("@info", "Could not access update information.")).show() return |