From a0af78431b7d017729d67208d07cdb26dc0e60d7 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <gua@adhisimon.org> Date: Fri, 10 Apr 2015 11:31:40 +0700 Subject: [PATCH] also show stock in single chip --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 368adda..ded6eee 100644 --- a/index.js +++ b/index.js @@ -38,7 +38,11 @@ redisSubscriber.on('message', function(channel, message) { total = total + stock; } - logger.info('XL' + params['ussd_nom'] + ': ' + total + ' in ' + nonEmptyChipsCount + ' chips'); + logger.info( + 'XL' + params['ussd_nom'] + + ' ' + + params['ussd_chipinfo'] + ': ' + parseInt(params['ussd_stok']) + + '; Total ' + total + ' in ' + nonEmptyChipsCount + ' chips'); }); } }); -- 1.9.0