From c8c4f3ba98b42b5f98b1e06fce39b4277566f8e0 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Wed, 7 Aug 2019 22:34:50 +0700 Subject: [PATCH] Logging on message history --- lib/http-listener.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/http-listener.js b/lib/http-listener.js index cf41adb..dfb7eed 100644 --- a/lib/http-listener.js +++ b/lib/http-listener.js @@ -50,6 +50,8 @@ function mainHandler(req, res) { return; } + logger.info(`Saving ${req.body.is_outgoing ? 'outgoing' : 'incoming' } message history`); + messagesArchive.insert( { origin_label: req.body.origin_label || req.query.origin_label || req.body.origin || req.query.origin, -- 1.9.0