spee.ch/server/utils/checkForConfig.js
2018-06-06 15:12:07 -07:00

9 lines
257 B
JavaScript

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);
};