From 74da2c1fff0831e1b29abb52ac4b565188ee8bd6 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Wed, 30 Nov 2016 12:57:29 -0800 Subject: [PATCH] Logging favicon mongo host. --- node/favicons.coffee | 2 +- node/favicons.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/favicons.coffee b/node/favicons.coffee index cb0ec0586..9f580e931 100644 --- a/node/favicons.coffee +++ b/node/favicons.coffee @@ -21,7 +21,7 @@ else url = "mongodb://#{MONGODB_SERVER}:#{MONGODB_PORT}/newsblur?replicaSet=nbset&readPreference=secondaryPreferred" mongo.MongoClient.connect url, (err, db) => - console.log " ---> Connected to #{db} / #{err}" + console.log " ---> Connected to #{db.serverConfig.s.host}:#{db.serverConfig.s.port} / #{err}" @collection = db.collection "feed_icons" app.get /\/rss_feeds\/icon\/(\d+)\/?/, (req, res) => diff --git a/node/favicons.js b/node/favicons.js index 4ed1b322f..dcdbec8ce 100644 --- a/node/favicons.js +++ b/node/favicons.js @@ -33,7 +33,7 @@ mongo.MongoClient.connect(url, (function(_this) { return function(err, db) { - console.log(" ---> Connected to " + db + " / " + err); + console.log(" ---> Connected to " + db.serverConfig.s.host + ":" + db.serverConfig.s.port + " / " + err); return _this.collection = db.collection("feed_icons"); }; })(this));