Compare View
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 | } |
package-lock.json