Log errors from syncRunner concurrent caller
This commit is contained in:
parent
d527c340c6
commit
2bf5382431
1 changed files with 6 additions and 3 deletions
|
@ -57,9 +57,12 @@ Zotero.Sync.Runner_Module = function (options = {}) {
|
|||
Zotero.defineProperty(this, 'apiKey', { set: val => _apiKey = val });
|
||||
|
||||
Components.utils.import("resource://zotero/concurrentCaller.js");
|
||||
this.caller = new ConcurrentCaller(4);
|
||||
this.caller.setLogger(msg => Zotero.debug(msg));
|
||||
this.caller.stopOnError = stopOnError;
|
||||
this.caller = new ConcurrentCaller({
|
||||
numConcurrent: 4,
|
||||
stopOnError: true,
|
||||
logger: msg => Zotero.debug(msg),
|
||||
onError: e => Zotero.logError(e)
|
||||
});
|
||||
|
||||
var _enabled = false;
|
||||
var _autoSyncTimer;
|
||||
|
|
Loading…
Reference in a new issue