From 7463f824ea0ccffc9ef3ba452ac9ade113eec595 Mon Sep 17 00:00:00 2001 From: zeus Date: Tue, 24 Nov 2020 17:34:02 +0200 Subject: [PATCH] mongo tail --- swarmlab-app/src/run/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 9093b2c..1377929 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -412,11 +412,14 @@ MongoClient.connect(mongourl, mongooptions, function(err, db){ if(err){ console.log(err); } else { + db.collection('log', onCollection); + /* db.collection(function(err, collections) { collections.forEach(function(coll) { console.log(coll.s.name); }); }); + */ } });