commit a8e94a8cba2339a32508ce054098ce013eee3af2
parent f82fb89e1cf59cb4aae68ede61bff37f62f01327
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 25 Apr 2016 23:41:21 -0400
Extra debug logging for #965
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/sync/syncEngine.js b/chrome/content/zotero/xpcom/sync/syncEngine.js
@@ -715,6 +715,7 @@ Zotero.Sync.Data.Engine.prototype._startUpload = Zotero.Promise.coroutine(functi
libraryVersion = yield this._uploadObjects(
objectType, objectIDs[objectType], libraryVersion
);
+ Zotero.debug("Library version is " + libraryVersion);
}
Zotero.debug(JSON.stringify(objectDeletions));
@@ -792,6 +793,8 @@ Zotero.Sync.Data.Engine.prototype._uploadSettings = Zotero.Promise.coroutine(fun
Zotero.Sync.Data.Engine.prototype._uploadObjects = Zotero.Promise.coroutine(function* (objectType, ids, libraryVersion) {
let objectTypePlural = Zotero.DataObjectUtilities.getObjectTypePlural(objectType);
let objectsClass = Zotero.DataObjectUtilities.getObjectsClassForObjectType(objectType);
+ Zotero.debug("Uploading " + objectTypePlural);
+ Zotero.debug(ids);
let queue = [];
for (let id of ids) {
@@ -803,6 +806,8 @@ Zotero.Sync.Data.Engine.prototype._uploadObjects = Zotero.Promise.coroutine(func
});
}
+ Zotero.debug(queue);
+
let failureDelayGenerator = null;
while (queue.length) {