print out connString and opts

v1.18.x
Barış Soner Uşaklı 6 years ago
parent 38ce83304d
commit aa567a5f2d

@ -2,9 +2,10 @@
var mubsub = require('mubsub-nbb');
var db = require('../mongo');
var client = mubsub(db.getConnectionString(), db.getConnectionOptions());
const connString = db.getConnectionString();
const connOptions = db.getConnectionOptions();
var client = mubsub(connString, connOptions);
client.on('error', function (err) {
console.error('mongo pubsub error', err);
console.error('mongo pubsub error ' + connString, connOptions, err);
});
module.exports = client.channel('pubsub');

@ -35,7 +35,7 @@ nconf.defaults({
if (!nconf.get('isCluster')) {
nconf.set('isPrimary', 'true');
nconf.set('isCluster', 'false');
nconf.set('isCluster', 'true');
}
var dbType = nconf.get('database');

Loading…
Cancel
Save