Extra debug logging for #965

This commit is contained in:
Dan Stillman 2016-04-25 23:41:21 -04:00
parent f82fb89e1c
commit a8e94a8cba

View file

@ -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) {