From 5fbfbf682b1cbd9a368276a8b40851828df0a94d Mon Sep 17 00:00:00 2001 From: lefteris Date: Wed, 14 Apr 2021 23:14:57 +0300 Subject: [PATCH] mongo logs ok --- swarmlab-app/src/run/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 6f1125b3..793dae98 100644 --- a/swarmlab-app/src/run/app.js +++ b/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 jsonfinal = []; obj.forEach((value) => { - if (value.log.includes("app_name")) { + if (value.container_name == "/mongo") { jsonfinal.push(JSON.parse(value.log)); } });