From c05025f4b18b5fe3cfcff2c357941441f423465b Mon Sep 17 00:00:00 2001 From: Aurimas Vinckevicius Date: Tue, 31 Mar 2015 13:30:05 -0500 Subject: [PATCH 1/2] Log translatorID and lastUpdated timestamp when parsing translators --- chrome/content/zotero/xpcom/translation/translate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 0608d549f..78e18b3ac 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -1528,7 +1528,8 @@ Zotero.Translate.Base.prototype = { this._aborted = false; this.saveQueue = []; - Zotero.debug("Translate: Parsing code for "+translator.label, 4); + Zotero.debug("Translate: Parsing code for " + translator.label + " " + + "(" + translator.translatorID + ", " + translator.lastUpdated + ")", 4); try { this._sandboxManager.eval("var exports = {}, ZOTERO_TRANSLATOR_INFO = "+translator.code, From 49a0b02b060b38a739c1ddab2bc41867d2eb4f67 Mon Sep 17 00:00:00 2001 From: Aurimas Vinckevicius Date: Tue, 31 Mar 2015 13:40:43 -0500 Subject: [PATCH 2/2] Log a list of translators that were found during detect* --- chrome/content/zotero/xpcom/translation/translate.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 78e18b3ac..88027e9ab 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -1505,8 +1505,15 @@ Zotero.Translate.Base.prototype = { * Called when all translators have been collected for detection */ "_detectTranslatorsCollected":function() { - Zotero.debug("Translate: All translator detect calls and RPC calls complete"); + Zotero.debug("Translate: All translator detect calls and RPC calls complete:"); this._foundTranslators.sort(function(a, b) { return a.priority-b.priority }); + if (this._foundTranslators.length) { + this._foundTranslators.forEach(function(t) { + Zotero.debug("\t" + t.label + ": " + t.priority); + }); + } else { + Zotero.debug("\tNo suitable translators found"); + } this._runHandler("translators", this._foundTranslators); },