From 5df708d34fce0914870dc07e553f5932d7b93c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Sat, 24 Aug 2024 13:28:02 +0300 Subject: [PATCH] Improve word plugin installer logging --- resource/word-processor-plugin-installer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resource/word-processor-plugin-installer.js b/resource/word-processor-plugin-installer.js index 85a54000f8..4e852de5a0 100644 --- a/resource/word-processor-plugin-installer.js +++ b/resource/word-processor-plugin-installer.js @@ -67,10 +67,12 @@ ZoteroPluginInstaller.prototype = { this.debug('Fetching addon info'); this._currentPluginVersion = (await Zotero.File.getContentsFromURLAsync(this._addon.VERSION_FILE)).trim(); - this.debug('Addon info fetched'); let lastInstalledVersion = this.prefBranch.getCharPref("version"); let lastAttemptedVersion = this.prefBranch.getCharPref("lastAttemptedVersion", ""); let lastPluginFileVersion = this._addon.LAST_INSTALLED_FILE_UPDATE; + this.debug(`Addon info fetched. version: ${this._currentPluginVersion}, ` + + `file version: ${lastPluginFileVersion}, installed version: ${lastInstalledVersion}` + + `attempted: ${lastAttemptedVersion}`); const newVersionSinceLastInstall = Services.vc.compare(lastInstalledVersion, lastPluginFileVersion) < 0; const newVersionSinceLastAttempt = Services.vc.compare(lastAttemptedVersion, lastPluginFileVersion) < 0; const shouldSkipInstallation = this.prefBranch.getBoolPref("skipInstallation");