Commit c8c4f3ba98b42b5f98b1e06fce39b4277566f8e0

Authored by Adhidarma Hadiwinoto
1 parent 3ee7d56092
Exists in master

Logging on message history

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

lib/http-listener.js
... ... @@ -50,6 +50,8 @@ function mainHandler(req, res) {
50 50 return;
51 51 }
52 52  
  53 + logger.info(`Saving ${req.body.is_outgoing ? 'outgoing' : 'incoming' } message history`);
  54 +
53 55 messagesArchive.insert(
54 56 {
55 57 origin_label: req.body.origin_label || req.query.origin_label || req.body.origin || req.query.origin,