diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index a2bd5f64..fa99f476 100644 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -98,7 +98,7 @@ const corsOptions = { // ------------------------------ // Lefos - get length of logs app.get("/length", cors(corsOptions), (req, res) => { - console.log("getting length of logs"); + console.error("getting length of logs"); var url = "mongodb://mongo:27017/"; @@ -217,7 +217,13 @@ app.get("/test2", cors(corsOptions), (req, res) => { obj.forEach((value) => { if (value.log.includes("app_name")) { - jsonfinal.push(JSON.parse(value.log)); + var tmp = JSON.parse(value.log); + if (tmp.type == "out") { + tmp.type = '