diff --git a/app.js b/app.js index 5f2e70c..c213a30 100644 --- a/app.js +++ b/app.js @@ -2,7 +2,8 @@ const loader = require('./libs/loader'); const lot = require('./libs/lot'); const lotv2 = require('./libs/lotV2'); const pusher = require('./libs/pusher'); - +const log4js = require('log4js'); +const logger = log4js.getLogger(); function run(data) { @@ -17,17 +18,20 @@ Other: ${v1.otherLine} stars: ${v1.otherStars} `; pusher.push(msg); - console.log(msg); + logger.debug(msg); loader.save(data); } function go() { + logger.info('GO!'); loader.load(run); } -cron.schedule('10 13 * * 2,5', function() { +cron.schedule('10 13 * * 2,5', () => { go(); - // console.log('tick'); + return -1; }); + +logger.info('Lot V3 started...');