spee.ch/server/utils/checkForConfig.js

10 lines
257 B
JavaScript
Raw Normal View History

2018-06-07 00:12:07 +02:00
const logger = require('winston');
module.exports = (name) => {
const config = require(`@config/${name}`);
if (!config) {
return logger.warn(`Server could not find config file for ${name}.`);
}
logger.debug(`found ${name} config:`, config);
};