Better debug output for objects in sync queue skipped for uploading
This commit is contained in:
parent
2f0391fb9c
commit
021cfa8b3b
|
@ -836,12 +836,12 @@ Zotero.Sync.Data.Engine.prototype._startUpload = Zotero.Promise.coroutine(functi
|
||||||
let unsyncedKeys = ids.map(id => objectsClass.getLibraryAndKeyFromID(id).key);
|
let unsyncedKeys = ids.map(id => objectsClass.getLibraryAndKeyFromID(id).key);
|
||||||
let origUnsynced = unsyncedKeys; // TEMP
|
let origUnsynced = unsyncedKeys; // TEMP
|
||||||
let queueKeys = yield Zotero.Sync.Data.Local.getObjectsFromSyncQueue(objectType, this.libraryID);
|
let queueKeys = yield Zotero.Sync.Data.Local.getObjectsFromSyncQueue(objectType, this.libraryID);
|
||||||
let num = unsyncedKeys.length;
|
let newUnsyncedKeys = Zotero.Utilities.arrayDiff(unsyncedKeys, queueKeys);
|
||||||
unsyncedKeys = Zotero.Utilities.arrayDiff(unsyncedKeys, queueKeys);
|
if (newUnsyncedKeys.length < unsyncedKeys.length) {
|
||||||
if (unsyncedKeys.length < num) {
|
Zotero.debug(`Skipping ${unsyncedKeys.length - newUnsyncedKeys.length} key(s) in sync queue`);
|
||||||
Zotero.debug(`Skipping ${num - unsyncedKeys.length} key(s) in sync queue`);
|
Zotero.debug(Zotero.Utilities.arrayDiff(unsyncedKeys, newUnsyncedKeys));
|
||||||
Zotero.debug(Zotero.Utilities.arrayDiff(unsyncedKeys, queueKeys));
|
|
||||||
}
|
}
|
||||||
|
unsyncedKeys = newUnsyncedKeys;
|
||||||
|
|
||||||
// TEMP
|
// TEMP
|
||||||
//ids = unsyncedKeys.map(key => objectsClass.getIDFromLibraryAndKey(this.libraryID, key));
|
//ids = unsyncedKeys.map(key => objectsClass.getIDFromLibraryAndKey(this.libraryID, key));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user