From 51faf1acf37376fc0b322bab33f78954b3796d38 Mon Sep 17 00:00:00 2001 From: Carlos Faria Date: Thu, 9 Jun 2016 18:55:22 +0100 Subject: [PATCH] Update storage.js Remove the log of mongoDB credentials. For security reasons. --- lib/storage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/storage.js b/lib/storage.js index 426f8a7..7cf6a7f 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -87,12 +87,12 @@ Storage.prototype.connect = function(opts, cb) { var config = opts.mongoDb || {}; mongodb.MongoClient.connect(config.uri, function(err, db) { 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); } self.db = db; self._createIndexes(); - console.log('Connection established to ', config.uri); + console.log('Connection established to mongoDB'); return cb(); }); };