mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix logging in FirmwareUpdateChecker
This commit is contained in:
parent
f440535581
commit
f20696966d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
# 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.
|
# notify the user when no new firmware version is available.
|
||||||
if (checked_version != "") and (checked_version != current_version):
|
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,
|
message = FirmwareUpdateCheckerMessage(machine_id, self._machine_name,
|
||||||
self._lookups.getRedirectUserUrl())
|
self._lookups.getRedirectUserUrl())
|
||||||
message.actionTriggered.connect(self._callback)
|
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))
|
Logger.log("i", "No machine with name {0} in list of firmware to check.".format(self._machine_name))
|
||||||
|
|
||||||
except Exception as e:
|
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:
|
if not self.silent:
|
||||||
Message(i18n_catalog.i18nc("@info", "Could not access update information.")).show()
|
Message(i18n_catalog.i18nc("@info", "Could not access update information.")).show()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue