Browse Source

mongo tail

master
zeus 4 years ago
parent
commit
731555604e
  1. 2
      swarmlab-app/src/run/app.js

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

@ -411,7 +411,7 @@ MongoClient.connect(mongourl, OPTS, function(err, client){
} else {
const db = client.db('fluent');
//db.collection('log', onCollection);
var stream = db.log.find({}, {
var stream = db.collection('log').find({}, {
tailable: true,
awaitdata: true
/* other options */

Loading…
Cancel
Save