mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Logging favicon mongo host.
This commit is contained in:
parent
e3393ba238
commit
74da2c1fff
2 changed files with 2 additions and 2 deletions
|
@ -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) =>
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue