removed redundant config check

This commit is contained in:
bill bittner 2018-08-01 11:17:04 -07:00
parent 134859742f
commit 517d1b2a95
2 changed files with 0 additions and 18 deletions

View file

@ -1,12 +1,3 @@
// test configs
const checkForConfig = require('./utils/checkForConfig.js');
checkForConfig('siteConfig');
checkForConfig('mysqlConfig');
checkForConfig('slackConfig');
checkForConfig('loggerConfig');
checkForConfig('siteConfig');
// load modules
const express = require('express');
const bodyParser = require('body-parser');

View file

@ -1,9 +0,0 @@
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);
};