Browse Source

mongo logs ok

master
lefteris 4 years ago
parent
commit
5fbfbf682b
  1. 2
      swarmlab-app/src/run/app.js

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

@ -114,7 +114,7 @@ app.get("/test", cors(corsOptions), (req, res) => {
var obj = JSON.parse(JSON.stringify(result)); var obj = JSON.parse(JSON.stringify(result));
var jsonfinal = []; var jsonfinal = [];
obj.forEach((value) => { obj.forEach((value) => {
if (value.log.includes("app_name")) { if (value.container_name == "/mongo") {
jsonfinal.push(JSON.parse(value.log)); jsonfinal.push(JSON.parse(value.log));
} }
}); });

Loading…
Cancel
Save