Log errors from syncRunner concurrent caller

This commit is contained in:
Adomas Venčkauskas 2017-04-27 11:40:26 +03:00
parent d527c340c6
commit 2bf5382431

View file

@ -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;