Logging favicon mongo host.

This commit is contained in:
Samuel Clay 2016-11-30 12:57:29 -08:00
parent e3393ba238
commit 74da2c1fff
2 changed files with 2 additions and 2 deletions

View file

@ -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) =>

View file

@ -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));