Commit 34fdaca2db5c384ad1805b5d98cbe5ecef748835
1 parent
c5041051
Exists in
master
and in
1 other branch
fix bug log usetime
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
ais-structure/src/modules/helper/log.js
... | ... | @@ -191,7 +191,7 @@ logger.startEC = function(req) |
191 | 191 | summaryList : [], |
192 | 192 | start : {}, |
193 | 193 | detail : {}, |
194 | - startTime : "" | |
194 | + startTime : new Date() | |
195 | 195 | } |
196 | 196 | |
197 | 197 | |
... | ... | @@ -199,7 +199,7 @@ logger.startEC = function(req) |
199 | 199 | |
200 | 200 | var newLine = "\r\n"; |
201 | 201 | var messageRes = ''; |
202 | - startTime = new Date(); | |
202 | + var startTime = mapLog[req.id].startTime; | |
203 | 203 | |
204 | 204 | // console.log(Object.keys(req)); |
205 | 205 | // console.log(req.headers); | ... | ... |