Browse Source

mongo tail

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

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

@ -444,7 +444,7 @@ var stream = db.collection('logs').find({}, {
}).stream(); }).stream();
stream.on('data', function (doc) { stream.on('data', function (doc) {
console.log('doc ' JSON.stringify(doc)) console.log('doc ' + JSON.stringify(doc))
//socket.write(JSON.stringify({'action': 'log','param': doc.log})); //socket.write(JSON.stringify({'action': 'log','param': doc.log}));
}); });
/* /*

Loading…
Cancel
Save