Browse Source

global

master
zeus 4 years ago
parent
commit
ef3d60f0c2
  1. 3
      swarmlab-app/src/run/app.js

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

@ -318,7 +318,8 @@ cors(corsOptions), (req, res, next) => {
console.log(reslog); console.log(reslog);
var pathfileval = pathmodule.basename(reslog.log.tailed_path); var pathfileval = pathmodule.basename(reslog.log.tailed_path);
var indexfind = global.pipelines.findIndex(x => x.pathlogfile==pathfileval); 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("IOT "+JSON.stringify(reslog.log.tailed_path));
console.log("IOTindexfind "+JSON.stringify(indexfind)); console.log("IOTindexfind "+JSON.stringify(indexfind));
console.log("IOTuser "+JSON.stringify(global.pipelines)); console.log("IOTuser "+JSON.stringify(global.pipelines));

Loading…
Cancel
Save