Extra debugging info for mod time mismatches
This commit is contained in:
parent
f2ae8421a0
commit
9c58d8aedc
|
@ -326,11 +326,9 @@ Zotero.Sync.Storage = new function () {
|
||||||
var syncHash = Zotero.Sync.Storage.getSyncedHash(itemID);
|
var syncHash = Zotero.Sync.Storage.getSyncedHash(itemID);
|
||||||
if (syncHash) {
|
if (syncHash) {
|
||||||
var fileHash = item.attachmentHash;
|
var fileHash = item.attachmentHash;
|
||||||
Zotero.debug('================');
|
|
||||||
Zotero.debug(fileHash);
|
|
||||||
Zotero.debug(syncHash);
|
|
||||||
if (fileHash && fileHash == syncHash) {
|
if (fileHash && fileHash == syncHash) {
|
||||||
Zotero.debug("Mod time didn't match but hash did for " + file.leafName + " -- ignoring");
|
Zotero.debug("Mod time didn't match (" + fileModTime + "!=" + syncModTime + ") "
|
||||||
|
+ "but hash did for " + file.leafName + " -- ignoring");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -503,7 +501,8 @@ Zotero.Sync.Storage = new function () {
|
||||||
}
|
}
|
||||||
var fileHash = item.attachmentHash;
|
var fileHash = item.attachmentHash;
|
||||||
if (attachmentData[item.id].hash && attachmentData[item.id].hash == fileHash) {
|
if (attachmentData[item.id].hash && attachmentData[item.id].hash == fileHash) {
|
||||||
Zotero.debug("Mod time didn't match but hash did for " + file.leafName + " -- ignoring");
|
Zotero.debug("Mod time didn't match (" + fileModTime + "!=" + attachmentData[item.id].mtime + ") "
|
||||||
|
+ "but hash did for " + file.leafName + " -- ignoring");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user