diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index efe73d0..6a6813c 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -466,12 +466,15 @@ function onCollection(err, collection) { reslog.log = data var user1 = objecttmp.user25user.replace(/[\n\t\r]/g,"") + console.log(' ---get '+ JSON.stringify(reslog)) pubClient.get(issend, function(err, object) { if(object){ + console.log(' ---set '+ JSON.stringify(reslog)) pubClient.set(issend, itemsProcessed, function(err, res) { io.in(user1).emit("logdata", reslog); }); }else{ + console.log(' ---isset '+ JSON.stringify(reslog)) io.in(user1).emit("logdata", reslog); } });