diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 7048c11..96e977f 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -318,7 +318,8 @@ cors(corsOptions), (req, res, next) => { console.log(reslog); var pathfileval = pathmodule.basename(reslog.log.tailed_path); var indexfind = global.pipelines.findIndex(x => x.pathlogfile==pathfileval); - indexfind === 1 ? sendlog(reslog,pathfileval) : console.log("object already exists") + //indexfind === -1 ? sendlog(reslog,pathfileval) : console.log("object already exists") + indexfind === -1 ? console.log("object not found") : sendlog(reslog,pathfileval) console.log("IOT "+JSON.stringify(reslog.log.tailed_path)); console.log("IOTindexfind "+JSON.stringify(indexfind)); console.log("IOTuser "+JSON.stringify(global.pipelines));