Update storage.js
Remove the log of mongoDB credentials. For security reasons.
This commit is contained in:
parent
d8633065cd
commit
51faf1acf3
|
@ -87,12 +87,12 @@ Storage.prototype.connect = function(opts, cb) {
|
||||||
var config = opts.mongoDb || {};
|
var config = opts.mongoDb || {};
|
||||||
mongodb.MongoClient.connect(config.uri, function(err, db) {
|
mongodb.MongoClient.connect(config.uri, function(err, db) {
|
||||||
if (err) {
|
if (err) {
|
||||||
log.error('Unable to connect to the mongoDB server on ', config.uri);
|
log.error('Unable to connect to the mongoDB. Check the credentials.');
|
||||||
return cb(err);
|
return cb(err);
|
||||||
}
|
}
|
||||||
self.db = db;
|
self.db = db;
|
||||||
self._createIndexes();
|
self._createIndexes();
|
||||||
console.log('Connection established to ', config.uri);
|
console.log('Connection established to mongoDB');
|
||||||
return cb();
|
return cb();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue