More debug output

This commit is contained in:
Dan Stillman 2009-10-10 05:48:46 +00:00
parent 193d205ca8
commit efba47c0df

View File

@ -2420,8 +2420,13 @@ Zotero.Sync.Server.Data = new function() {
creators = creators.concat(remoteCreators); creators = creators.concat(remoteCreators);
for each(var creator in creators) { for each(var creator in creators) {
var r = remoteCreatorStore[Zotero.Creators.getLibraryKeyHash(creator.ref)]; var r = remoteCreatorStore[Zotero.Creators.getLibraryKeyHash(creator.ref)];
Zotero.debug('=============');
Zotero.debug(Zotero.Creators.getLibraryKeyHash(creator.ref));
Zotero.debug(r);
Zotero.debug(creator.ref);
// Doesn't include dateModified // Doesn't include dateModified
if (r && !r.equals(creator.ref)) { if (r && !r.equals(creator.ref)) {
Zotero.debug("CREATORS CHANGED!");
creatorsChanged = true; creatorsChanged = true;
break; break;
} }
@ -2476,6 +2481,7 @@ Zotero.Sync.Server.Data = new function() {
// TODO: order reconcile by parent/child? // TODO: order reconcile by parent/child?
if (!skipCR) { if (!skipCR) {
Zotero.debug("ADDING " + type + " TO CR");
toReconcile.push([ toReconcile.push([
obj, obj,
remoteObj remoteObj
@ -3190,9 +3196,6 @@ Zotero.Sync.Server.Data = new function() {
* @param {Array[]} objectPairs Array of arrays of pairs of Item, Collection, etc. * @param {Array[]} objectPairs Array of arrays of pairs of Item, Collection, etc.
*/ */
function _reconcile(type, objectPairs, changedCreators) { function _reconcile(type, objectPairs, changedCreators) {
Zotero.debug('==================================');
Zotero.debug(objectPairs);
Zotero.debug(changedCreators);
var io = { var io = {
dataIn: { dataIn: {
type: type, type: type,