From 08296b06a57e491a7f5f1388b5596a4c07d0778d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 6 Aug 2013 16:03:03 -0400 Subject: [PATCH] Include libraryID in file sync debug message --- chrome/content/zotero/xpcom/storage.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index d529cc95d..97bd845da 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -925,7 +925,12 @@ Zotero.Sync.Storage = new function () { Zotero.debug("No synced files have changed locally"); } - Zotero.debug("Checked " + numItems + " files in " + (new Date() - t) + "ms"); + let msg = "Checked " + numItems + " files in "; + if (libraryID !== false) { + msg += "library " + libraryID + " in "; + } + msg += (new Date() - t) + "ms"; + Zotero.debug(msg); throw new Task.Result(changed); } @@ -1074,7 +1079,12 @@ Zotero.Sync.Storage = new function () { Zotero.debug("No synced files have changed locally"); } - Zotero.debug("Checked " + numItems + " files in " + (new Date() - t) + "ms"); + let msg = "Checked " + numItems + " files in "; + if (libraryID !== false) { + msg += "library " + libraryID + " in "; + } + msg += (new Date() - t) + "ms"; + Zotero.debug(msg); return changed; }));