Browse Source

mongo tail

master
zeus 4 years ago
parent
commit
7463f824ea
  1. 3
      swarmlab-app/src/run/app.js

3
swarmlab-app/src/run/app.js

@ -412,11 +412,14 @@ MongoClient.connect(mongourl, mongooptions, function(err, db){
if(err){ if(err){
console.log(err); console.log(err);
} else { } else {
db.collection('log', onCollection);
/*
db.collection(function(err, collections) { db.collection(function(err, collections) {
collections.forEach(function(coll) { collections.forEach(function(coll) {
console.log(coll.s.name); console.log(coll.s.name);
}); });
}); });
*/
} }
}); });

Loading…
Cancel
Save