Browse Source

mongo tail

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

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

@ -410,7 +410,7 @@ function onCollection(err, collection) {
cursor.on('data', function (data) { cursor.on('data', function (data) {
reslog.log = data reslog.log = data
reslog.date = convertDateToUTC(now) reslog.date = convertDateToUTC(now)
console.log('data ' + data.value); console.log('data ' + JSON.stringify(reslog));
var user = "anagnostopoulos@uniwa.gr" var user = "anagnostopoulos@uniwa.gr"
//io.in(user).emit("logdata", data.value); //io.in(user).emit("logdata", data.value);
io.in(user).emit("logdata", reslog); io.in(user).emit("logdata", reslog);

Loading…
Cancel
Save