spee.ch/helpers/configVarCheck.js
2017-11-06 15:18:45 -08:00

20 lines
648 B
JavaScript

const config = require('../config/speechConfig.js');
const logger = require('winston');
module.exports = function () {
// get the config file
for (let configCategoryKey in config) {
if (config.hasOwnProperty(configCategoryKey)) {
// get the final variables for each config category
const configVariables = config[configCategoryKey];
for (let configVarKey in configVariables) {
if (configVariables.hasOwnProperty(configVarKey)) {
// print each variable
logger.debug(`CONFIG CHECK: ${configCategoryKey}.${configVarKey} === ${configVariables[configVarKey]}`);
}
}
}
}
};