diff --git a/index.js b/index.js index 4684155..d69ab50 100644 --- a/index.js +++ b/index.js @@ -70,7 +70,7 @@ server.get('/get_pool', bodyParser.json(), function (req, res) { var path = './route_sql/get_pool.sql'; var callback = function(arg){ sql = arg; - console.log("-------------------------get pool:----------------------------"); + console.log(new Date().toISOString() + "-------------------------get pool:----------------------------"); console.log(req.body.quota_rep); sql = sql.replace("rep_replace",req.body.quota_rep); Postgres.FirstRow(sql,[],res) @@ -116,7 +116,7 @@ server.get('/scenario_package', bodyParser.json(), function (req, res) { res.send("no body was sent"); return; } - console.log("-------------------------get scenario:------------------------------") + console.log(new Date().toISOString() + "-------------------------get scenario:------------------------------") console.log(req.body); //parse the where clause into the main sql statement sql = sql.replace(new RegExp("where_clause",'g'),w) @@ -147,7 +147,7 @@ server.get('/list_changes', bodyParser.json(), function (req, res) { var callback = function(arg){ sql = arg; - console.log("-------------------------get scenario:------------------------------") + console.log(new Date().toISOString() +"-------------------------get scenario:------------------------------") console.log(req.body); //parse the where clause into the main sql statement sql = sql.replace(new RegExp("replace_user",'g'),JSON.stringify(req.body)) @@ -184,7 +184,7 @@ server.post('/addmonth_v', bodyParser.json(), function (req, res) { res.send("no body was sent"); return; } - console.log("-----------------------------add month volume:---------------------------------"); + console.log(new Date().toISOString() +"-----------------------------add month volume:---------------------------------"); req.body.stamp = new Date().toISOString() console.log(req.body); //console.log(args); @@ -217,7 +217,7 @@ server.post('/addmonth_vp', bodyParser.json(), function (req, res) { res.send("no body was sent"); return; } - console.log("------------------add month volume and price:-------------------"); + console.log(new Date().toISOString() +"------------------add month volume and price:-------------------"); req.body.stamp = new Date().toISOString() console.log(req.body); //console.log(args); @@ -260,7 +260,7 @@ server.post('/scale_v', bodyParser.json(), function (req, res) { res.send("no body was sent"); return; } - console.log("-----------------------scale volume:------------------------------"); + console.log(new Date().toISOString() +"-----------------------scale volume:------------------------------"); req.body.stamp = new Date().toISOString() console.log(req.body); //console.log(args); @@ -301,7 +301,7 @@ server.post('/scale_p', bodyParser.json(), function (req, res) { res.send("no body was sent"); return; } - console.log("--------------------scale price:-------------------"); + console.log(new Date().toISOString() +"--------------------scale price:-------------------"); req.body.stamp = new Date().toISOString() console.log(req.body); //console.log(args); @@ -342,7 +342,7 @@ server.post('/scale_vp', bodyParser.json(), function (req, res) { res.send("no body was sent"); return; } - console.log("--------------------scale volume & price:-------------------"); + console.log(new Date().toISOString() +"--------------------scale volume & price:-------------------"); req.body.stamp = new Date().toISOString() console.log(req.body); //console.log(args); @@ -384,7 +384,7 @@ server.post('/new_part', bodyParser.json(), function (req, res) { res.send("no body was sent"); return; } - console.log("--------------------new part:-------------------"); + console.log(new Date().toISOString() +"--------------------new part:-------------------"); req.body.stamp = new Date().toISOString() console.log(req.body); //console.log(args); @@ -427,7 +427,7 @@ server.post('/new_basket', bodyParser.json(), function (req, res) { res.send("no body was sent"); return; } - console.log("--------------------new basket:-------------------"); + console.log(new Date().toISOString() +"--------------------new basket:-------------------"); req.body.stamp = new Date().toISOString() console.log(req.body); //console.log(args);