From 78593ebac223bc2908799f538e7b08d374fefbae Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 27 Nov 2020 23:39:51 +0200 Subject: [PATCH] nginx --- swarmlab-app/src/run/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 0e83fe2..8e4273c 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -431,7 +431,11 @@ function onCollection(err, collection) { var reslog = new Object(); var now = new Date(); cursor.on('data', function (data) { - var issend = getSHA256ofJSON(data) + var issendob = {}; + issendob.message = data.message + issendob.tailed_path = data.tailed_path + + var issend = getSHA256ofJSON(issend) //io.in('anagnostopoulos@uniwa.gr').emit("logdata", data); console.log('++++++++' + JSON.stringify(data));