Commit a0af78431b7d017729d67208d07cdb26dc0e60d7

Authored by Adhidarma Hadiwinoto
1 parent 8611df5622
Exists in master

also show stock in single chip

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

... ... @@ -38,7 +38,11 @@ redisSubscriber.on('message', function(channel, message) {
38 38 total = total + stock;
39 39 }
40 40  
41   - logger.info('XL' + params['ussd_nom'] + ': ' + total + ' in ' + nonEmptyChipsCount + ' chips');
  41 + logger.info(
  42 + 'XL' + params['ussd_nom']
  43 + + ' '
  44 + + params['ussd_chipinfo'] + ': ' + parseInt(params['ussd_stok'])
  45 + + '; Total ' + total + ' in ' + nonEmptyChipsCount + ' chips');
42 46 });
43 47 }
44 48 });