Commit 57fe0b08464baea480561f4f94c4eea5bfd6cd87
1 parent
b399f8dd7a
Exists in
master
and in
1 other branch
Add more on access log
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
lib/middlewares/common.js
... | ... | @@ -21,8 +21,10 @@ module.exports = function common(req, res, next) { |
21 | 21 | xid: res.locals.xid, |
22 | 22 | pid: process.pid, |
23 | 23 | subsystem: res.locals.httpgetx_subsystem, |
24 | - requester_ip: req.ip, | |
24 | + userAgent: req.get('user-agent'), | |
25 | + requesterIp: req.ip, | |
25 | 26 | method: req.method, |
27 | + requestContentType: req.get('content-type'), | |
26 | 28 | path: req.path, |
27 | 29 | url: req.url, |
28 | 30 | qs: req.query, |