From 34fdaca2db5c384ad1805b5d98cbe5ecef748835 Mon Sep 17 00:00:00 2001 From: Sumate Kongpui Date: Wed, 29 Aug 2018 11:57:44 +0700 Subject: [PATCH] fix bug log usetime --- ais-structure/src/modules/helper/log.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ais-structure/src/modules/helper/log.js b/ais-structure/src/modules/helper/log.js index 4ec8cfe..f4690cc 100644 --- a/ais-structure/src/modules/helper/log.js +++ b/ais-structure/src/modules/helper/log.js @@ -191,7 +191,7 @@ logger.startEC = function(req) summaryList : [], start : {}, detail : {}, - startTime : "" + startTime : new Date() } @@ -199,7 +199,7 @@ logger.startEC = function(req) var newLine = "\r\n"; var messageRes = ''; - startTime = new Date(); + var startTime = mapLog[req.id].startTime; // console.log(Object.keys(req)); // console.log(req.headers); -- libgit2 0.21.2