|
@ -135,8 +135,10 @@ cors(corsOptions), (req, res, next) => { |
|
|
console.log("PATH "+JSON.stringify(req.body[0].tailed_path)); |
|
|
console.log("PATH "+JSON.stringify(req.body[0].tailed_path)); |
|
|
for (var i = 0; i < req.body.length; i++){ |
|
|
for (var i = 0; i < req.body.length; i++){ |
|
|
var obj = req.body[i]; |
|
|
var obj = req.body[i]; |
|
|
|
|
|
|
|
|
var reslog = new Object(); |
|
|
var reslog = new Object(); |
|
|
reslog.message = obj |
|
|
reslog.log = obj |
|
|
|
|
|
|
|
|
var now = new Date(); |
|
|
var now = new Date(); |
|
|
var n = {} |
|
|
var n = {} |
|
|
n.year = now.getFullYear(); |
|
|
n.year = now.getFullYear(); |
|
@ -147,7 +149,7 @@ cors(corsOptions), (req, res, next) => { |
|
|
n.seconds = now.getSeconds(); |
|
|
n.seconds = now.getSeconds(); |
|
|
n.milliseconds = now.getMilliseconds(); |
|
|
n.milliseconds = now.getMilliseconds(); |
|
|
reslog.date = n |
|
|
reslog.date = n |
|
|
console.log(n); |
|
|
console.log(reslog); |
|
|
|
|
|
|
|
|
io.emit("logdata", reslog); |
|
|
io.emit("logdata", reslog); |
|
|
/* |
|
|
/* |
|
|