mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: log configJSON
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user