Commit 795261f4233f87d8b9310a079a2ef76255ba5d33
1 parent
8004247ae9
Exists in
master
Add requester ip on incoming callback log
Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff
lib/partner.js
... | ... | @@ -129,7 +129,11 @@ function advice(task) { |
129 | 129 | function reverseReportHandler(req, res) { |
130 | 130 | const report_id = uuidv4(); |
131 | 131 | |
132 | - logger.verbose('Incoming reverse report', {report_id: report_id, url: req.url}); | |
132 | + logger.verbose('Incoming reverse report', { | |
133 | + report_id: report_id, | |
134 | + requester_ip: req.socket && req.socket.localAddress, | |
135 | + url: req.url | |
136 | + }); | |
133 | 137 | res.end('OK'); |
134 | 138 | |
135 | 139 | const qs = URL.parse(req.url, true).query; |