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 }); Zotero.defineProperty(this, 'apiKey', { set: val => _apiKey = val });
Components.utils.import("resource://zotero/concurrentCaller.js"); Components.utils.import("resource://zotero/concurrentCaller.js");
this.caller = new ConcurrentCaller(4); this.caller = new ConcurrentCaller({
this.caller.setLogger(msg => Zotero.debug(msg)); numConcurrent: 4,
this.caller.stopOnError = stopOnError; stopOnError: true,
logger: msg => Zotero.debug(msg),
onError: e => Zotero.logError(e)
});
var _enabled = false; var _enabled = false;
var _autoSyncTimer; var _autoSyncTimer;