Include libraryID in file sync debug message
This commit is contained in:
parent
b20a7a572c
commit
08296b06a5
1 changed files with 12 additions and 2 deletions
|
@ -925,7 +925,12 @@ Zotero.Sync.Storage = new function () {
|
|||
Zotero.debug("No synced files have changed locally");
|
||||
}
|
||||
|
||||
Zotero.debug("Checked " + numItems + " files in " + (new Date() - t) + "ms");
|
||||
let msg = "Checked " + numItems + " files in ";
|
||||
if (libraryID !== false) {
|
||||
msg += "library " + libraryID + " in ";
|
||||
}
|
||||
msg += (new Date() - t) + "ms";
|
||||
Zotero.debug(msg);
|
||||
|
||||
throw new Task.Result(changed);
|
||||
}
|
||||
|
@ -1074,7 +1079,12 @@ Zotero.Sync.Storage = new function () {
|
|||
Zotero.debug("No synced files have changed locally");
|
||||
}
|
||||
|
||||
Zotero.debug("Checked " + numItems + " files in " + (new Date() - t) + "ms");
|
||||
let msg = "Checked " + numItems + " files in ";
|
||||
if (libraryID !== false) {
|
||||
msg += "library " + libraryID + " in ";
|
||||
}
|
||||
msg += (new Date() - t) + "ms";
|
||||
Zotero.debug(msg);
|
||||
|
||||
return changed;
|
||||
}));
|
||||
|
|
Loading…
Add table
Reference in a new issue