Commit 457b0b090e9b2b672380608b6dcb47c261168fd6

Authored by Adhidarma Hadiwinoto
1 parent a799858ec1
Exists in master

Log on CORE request

Showing 2 changed files with 6 additions and 1 deletions Side-by-side Diff

http-callback-handler.js
... ... @@ -14,6 +14,11 @@ function mainHandler(req, res) {
14 14 res.end('OK');
15 15  
16 16 if (!req.body) req.body = {};
  17 + logger.verbose('MESSAGING-CLIENT-LIB: Got a request from CORE', {
  18 + ip: req.ip,
  19 + qs: req.query,
  20 + body: req.body,
  21 + });
17 22  
18 23 bridge.sendToPartner(
19 24 req.query.terminal_name || req.body.terminal_name,
... ... @@ -52,7 +52,7 @@ function onIncomingMessage(params) {
52 52 return;
53 53 }
54 54  
55   - DO_NOT_LOG || logger.verbose('MESSAGING-CLIENT-LIB: Got resposnse', { body });
  55 + DO_NOT_LOG || logger.verbose('MESSAGING-CLIENT-LIB: Got response', { body });
56 56  
57 57 if (params.do_not_forward_to_core) return;
58 58 if (params.is_outgoing) return;