larvitamsync
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "larvitamsync", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Sync data between minions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,13 +12,13 @@ 'use strict'; | ||
that.options = options; | ||
that.intercom = lUtils.instances.intercom; | ||
that.extIntercom = lUtils.instances.intercom; | ||
that.responseReceived = false; | ||
if (that.options.intercom) { | ||
that.intercom = that.options.intercom; | ||
that.extIntercom = that.options.intercom; | ||
} else { | ||
that.intercom = lUtils.instances.intercom; | ||
that.extIntercom = lUtils.instances.intercom; | ||
} | ||
// We are strictly in need of the intercom! | ||
if ( ! (that.intercom instanceof Intercom)) { | ||
if ( ! (that.extIntercom instanceof Intercom)) { | ||
const err = new Error('larvitutils.instances.intercom is not an instance of Intercom!'); | ||
@@ -30,3 +30,3 @@ log.error('larvitamsync: syncClient.js - ' + err.message); | ||
// Reconnect so we have a fresh instance of intercom so we do not interfer with others | ||
that.intercom = new Intercom(that.intercom.conStr); | ||
that.intercom = new Intercom(that.extIntercom.conStr); | ||
that.intercom.on('ready', function(err) { | ||
@@ -33,0 +33,0 @@ if (err) { cb(err); return; } |
@@ -68,3 +68,3 @@ 'use strict'; | ||
dumpProcess.stderr.on('data', function(data) { | ||
log.error('larvitamsync: syncServer.js - SyncServer.handleHttpReq() - Exchange: "' + that.options.exchange + '", Token: "' + req.token + '". Error from dump command: ' + data.toString()); | ||
log.warn('larvitamsync: syncServer.js - SyncServer.handleHttpReq() - Exchange: "' + that.options.exchange + '", Token: "' + req.token + '". Error from dump command: ' + data.toString()); | ||
}); | ||
@@ -71,0 +71,0 @@ |
28154