From 6715ce585fc3d7e95c257f394202c8042d225715 Mon Sep 17 00:00:00 2001 From: zeus Date: Tue, 24 Nov 2020 22:40:25 +0200 Subject: [PATCH] mongo tail --- swarmlab-app/src/run/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index df348b1..961f992 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -432,6 +432,7 @@ function onCollection(err, collection) { console.log('data ' + JSON.stringify(reslog)); var usertmp = global.pipelines.find(x => x.pathlogfile==pathfileval); var user = usertmp.data[0].user25user; + console.log('datauser ' + JSON.stringify(user)); io.in(user).emit("logdata", reslog); itemsProcessed++; @@ -443,6 +444,7 @@ function onCollection(err, collection) { console.log('data ' + JSON.stringify(reslog)); var usertmp = global.pipelines.find(x => x.pathlogfile==pathfileval); var user = usertmp.data[0].user25user; + console.log('datauser ' + JSON.stringify(user)); io.in(user).emit("logdata", reslog); itemsProcessed++; }