Commit 038a3f3ea67461759ee948f3786de02c5ffa21ff
1 parent
08c1ef883e
Exists in
master
and in
1 other branch
Log result
Showing 1 changed file with 6 additions and 2 deletions Side-by-side Diff
lib/listener-partner/routers/trx-status.js
... | ... | @@ -91,7 +91,7 @@ async function pageIndex(req, res) { |
91 | 91 | } |
92 | 92 | : null; |
93 | 93 | |
94 | - res.json({ | |
94 | + const result = { | |
95 | 95 | error: coreResponse.status !== 'OK', |
96 | 96 | from_ip: remoteIp, |
97 | 97 | terminal_name: req.body.terminal_name || req.query.terminal_name, |
... | ... | @@ -101,7 +101,11 @@ async function pageIndex(req, res) { |
101 | 101 | trx_found: Boolean(trx), |
102 | 102 | trx, |
103 | 103 | // original_trx: coreResponse.result, |
104 | - }); | |
104 | + }; | |
105 | + | |
106 | + res.json(result); | |
107 | + | |
108 | + logger.verbose('Partner request responded', { xid: res.locals.xid, result }); | |
105 | 109 | } |
106 | 110 | |
107 | 111 | router.get('/', pageIndex); |