|
@ -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)); |
|
|