test: log configJSON

isekai-main
Barış Soner Uşaklı 3 years ago
parent 32f693019b
commit 9db90a3098

@ -29,7 +29,8 @@ winston.add(new winston.transports.Console({
try { try {
const fs = require('fs'); const fs = require('fs');
const configJSON = fs.readFileSync(path.join(__dirname, '../../config.json'), 'utf-8'); const configJSON = fs.readFileSync(path.join(__dirname, '../../config.json'), 'utf-8');
console.log('configJSON', configJSON); winston.info('configJSON');
winston.info(configJSON);
} catch (err) { } catch (err) {
console.error(err.stack); console.error(err.stack);
throw err; throw err;

Loading…
Cancel
Save