Compare View

switch
from
...
to
 
Commits (2)

Changes

Showing 3 changed files Side-by-side Diff

lib/http-listener.js
... ... @@ -57,7 +57,14 @@ function mainHandler(req, res) {
57 57 return;
58 58 }
59 59  
60   - logger.info(`Saving ${req.body.is_outgoing || req.query.is_outgoing ? 'outgoing' : 'incoming' } message history`);
  60 + logger.verbose(
  61 + `Saving ${req.body.is_outgoing || req.query.is_outgoing ? 'outgoing' : 'incoming' } message history`,
  62 + {
  63 + transport: req.body.origin_transport || req.query.origin_transport,
  64 + partner: req.body.partner || req.query.partner || req.body.from || req.query.from || req.body.to || req.query.to,
  65 + msg: req.body.msg || req.query.msg,
  66 + }
  67 + );
61 68  
62 69 messagesArchive.insert(
63 70 {
... ... @@ -78,7 +85,7 @@ function mainHandler(req, res) {
78 85 msg: req.body.msg || req.query.msg,
79 86 do_not_forward_to_core: req.body.do_not_forward_to_core || req.query.do_not_forward_to_core
80 87 });
81   -
  88 +
82 89 res.end('OK');
83 90 return;
84 91 }
1 1 {
2 2 "name": "komodo-center-messaging",
3   - "version": "0.9.19",
  3 + "version": "0.9.20",
4 4 "lockfileVersion": 1,
5 5 "requires": true,
6 6 "dependencies": {
1 1 {
2 2 "name": "komodo-center-messaging",
3   - "version": "0.9.19",
  3 + "version": "0.9.20",
4 4 "description": "Komodo Common Messaging Center",
5 5 "main": "index.js",
6 6 "scripts": {